Skip to content

Commit 9d960de

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 <[email protected]> Closes apache#21030 from JBauerKogentix/patch-1.
1 parent 75a1830 commit 9d960de

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
@@ -1543,12 +1543,12 @@ class MultilayerPerceptronClassifier(JavaEstimator, HasFeaturesCol, HasLabelCol,
15431543
def __init__(self, featuresCol="features", labelCol="label", predictionCol="prediction",
15441544
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03,
15451545
solver="l-bfgs", initialWeights=None, probabilityCol="probability",
1546-
rawPredicitionCol="rawPrediction"):
1546+
rawPredictionCol="rawPrediction"):
15471547
"""
15481548
__init__(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
15491549
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
15501550
solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1551-
rawPredicitionCol="rawPrediction")
1551+
rawPredictionCol="rawPrediction")
15521552
"""
15531553
super(MultilayerPerceptronClassifier, self).__init__()
15541554
self._java_obj = self._new_java_obj(
@@ -1562,12 +1562,12 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
15621562
def setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction",
15631563
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03,
15641564
solver="l-bfgs", initialWeights=None, probabilityCol="probability",
1565-
rawPredicitionCol="rawPrediction"):
1565+
rawPredictionCol="rawPrediction"):
15661566
"""
15671567
setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
15681568
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
15691569
solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1570-
rawPredicitionCol="rawPrediction"):
1570+
rawPredictionCol="rawPrediction"):
15711571
Sets params for MultilayerPerceptronClassifier.
15721572
"""
15731573
kwargs = self._input_kwargs

0 commit comments

Comments
 (0)