Github user WeichenXu123 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19172#discussion_r137922397
  
    --- Diff: python/pyspark/ml/tests.py ---
    @@ -1655,6 +1655,25 @@ def 
test_multinomial_logistic_regression_with_bound(self):
                 np.allclose(model.interceptVector.toArray(), [-0.9057, 
-1.1392, -0.0033], atol=1E-4))
     
     
    +class MultilayerPerceptronClassifierTest(SparkSessionTestCase):
    +
    +    def test_multilayer_perceptron_classifier(self):
    +
    +        data_path = "data/mllib/sample_multiclass_classification_data.txt"
    +        df = self.spark.read.format("libsvm").load(data_path)
    +
    +        mlp = MultilayerPerceptronClassifier(maxIter=100, layers=[4, 5, 4, 
3], blockSize=1, seed=123)
    --- End diff --
    
    We can simplify the layer structure to speed up tests. E.g, use 3 layers 
structure.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to