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

    https://github.com/apache/spark/pull/19172#discussion_r137929052
  
    --- Diff: python/pyspark/ml/classification.py ---
    @@ -1425,11 +1425,13 @@ class MultilayerPerceptronClassifier(JavaEstimator, 
HasFeaturesCol, HasLabelCol,
         @keyword_only
         def __init__(self, featuresCol="features", labelCol="label", 
predictionCol="prediction",
                      maxIter=100, tol=1e-6, seed=None, layers=None, 
blockSize=128, stepSize=0.03,
    -                 solver="l-bfgs", initialWeights=None):
    +                 solver="l-bfgs", initialWeights=None, 
probabilityCol="probability",
    +                 rawPredicitionCol="rawPrediction"):
             """
             __init__(self, featuresCol="features", labelCol="label", 
predictionCol="prediction", \
                      maxIter=100, tol=1e-6, seed=None, layers=None, 
blockSize=128, stepSize=0.03, \
    -                 solver="l-bfgs", initialWeights=None)
    +                 solver="l-bfgs", initialWeights=None, 
probabilityCol="probability", \
    +                 rawPredicitionCol="rawPrediction")
    --- End diff --
    
    @WeichenXu123 Actually these default values has been set in base classes 
```HasProbabilityCol``` and ```HasRawPredictionCol```, so we don't to set it 
again here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to