Skip to content

Commit 03a4dfd

Browse files
JBauerKogentixjkbradley
authored andcommitted
typo rawPredicition changed to rawPrediction
MultilayerPerceptronClassifier had 4 occurrences ## What changes were proposed in this pull request? (Please fill in changes proposed in this fix) ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) Please review http://spark.apache.org/contributing.html before opening a pull request. Author: JBauerKogentix <37910022+JBauerKogentix@users.noreply.github.com> Closes #21030 from JBauerKogentix/patch-1. (cherry picked from commit 9d960de) Signed-off-by: Joseph K. Bradley <joseph@databricks.com>
1 parent acfc156 commit 03a4dfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/pyspark/ml/classification.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,12 +1542,12 @@ class MultilayerPerceptronClassifier(JavaEstimator, HasFeaturesCol, HasLabelCol,
15421542
def __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction",
15431543
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03,
15441544
solver="l-bfgs", initialWeights=None, probabilityCol="probability",
1545-
rawPredicitionCol="rawPrediction"):
1545+
rawPredictionCol="rawPrediction"):
15461546
"""
15471547
__init__(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
15481548
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
15491549
solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1550-
rawPredicitionCol="rawPrediction")
1550+
rawPredictionCol="rawPrediction")
15511551
"""
15521552
super(MultilayerPerceptronClassifier, self).__init__()
15531553
self._java_obj = self._new_java_obj(
@@ -1561,12 +1561,12 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
15611561
def setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction",
15621562
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03,
15631563
solver="l-bfgs", initialWeights=None, probabilityCol="probability",
1564-
rawPredicitionCol="rawPrediction"):
1564+
rawPredictionCol="rawPrediction"):
15651565
"""
15661566
setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
15671567
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
15681568
solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1569-
rawPredicitionCol="rawPrediction"):
1569+
rawPredictionCol="rawPrediction"):
15701570
Sets params for MultilayerPerceptronClassifier.
15711571
"""
15721572
kwargs = self._input_kwargs

0 commit comments

Comments
 (0)