You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2022/08/18 05:24:04 UTC
[spark] branch master updated: [SPARK-40132][ML] Restore rawPredictionCol to MultilayerPerceptronClassifier.setParams
This is an automated email from the ASF dual-hosted git repository.
srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 6768d9cc38a [SPARK-40132][ML] Restore rawPredictionCol to MultilayerPerceptronClassifier.setParams
6768d9cc38a is described below
commit 6768d9cc38a320f7e1c6781afcd170577c5c7d0f
Author: Sean Owen <sr...@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 <sr...@gmail.com>
Signed-off-by: Sean Owen <sr...@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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org