This is an automated email from the ASF dual-hosted git repository. srowen pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.3 by this push: new e1c5f90c700 [SPARK-40132][ML] Restore rawPredictionCol to MultilayerPerceptronClassifier.setParams e1c5f90c700 is described below commit e1c5f90c700d844aa56c211e53eb75d0aa99b9ad Author: Sean Owen <sro...@gmail.com> AuthorDate: Thu Aug 18 00:23:52 2022 -0500 [SPARK-40132][ML] Restore rawPredictionCol to MultilayerPerceptronClassifier.setParams ### What changes were proposed in this pull request? Restore rawPredictionCol to MultilayerPerceptronClassifier.setParams ### Why are the changes needed? This param was inadvertently removed in the refactoring in https://github.com/apache/spark/commit/40cdb6d51c2befcfeac8fb5cf5faf178d1a5ee7b#r81473316 Without it, using this param in the constructor fails. ### Does this PR introduce _any_ user-facing change? Not aside from the bug fix. ### How was this patch tested? Existing tests. Closes #37561 from srowen/SPARK-40132. Authored-by: Sean Owen <sro...@gmail.com> Signed-off-by: Sean Owen <sro...@gmail.com> (cherry picked from commit 6768d9cc38a320f7e1c6781afcd170577c5c7d0f) Signed-off-by: Sean Owen <sro...@gmail.com> --- python/pyspark/ml/classification.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pyspark/ml/classification.py b/python/pyspark/ml/classification.py index 40a2a87c5db..c09a510d76b 100644 --- a/python/pyspark/ml/classification.py +++ b/python/pyspark/ml/classification.py @@ -3230,6 +3230,7 @@ class MultilayerPerceptronClassifier( solver: str = "l-bfgs", initialWeights: Optional[Vector] = None, probabilityCol: str = "probability", + rawPredictionCol: str = "rawPrediction", ) -> "MultilayerPerceptronClassifier": """ setParams(self, \\*, featuresCol="features", labelCol="label", predictionCol="prediction", \ --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org