@@ -1356,7 +1356,8 @@ def theta(self):
1356
1356
@inherit_doc
1357
1357
class MultilayerPerceptronClassifier (JavaEstimator , HasFeaturesCol , HasLabelCol , HasPredictionCol ,
1358
1358
HasMaxIter , HasTol , HasSeed , HasStepSize , HasSolver ,
1359
- JavaMLWritable , JavaMLReadable ):
1359
+ JavaMLWritable , JavaMLReadable , HasProbabilityCol ,
1360
+ HasRawPredictionCol ):
1360
1361
"""
1361
1362
Classifier trainer based on the Multilayer Perceptron.
1362
1363
Each layer has sigmoid activation function, output layer has softmax.
@@ -1425,11 +1426,13 @@ class MultilayerPerceptronClassifier(JavaEstimator, HasFeaturesCol, HasLabelCol,
1425
1426
@keyword_only
1426
1427
def __init__ (self , featuresCol = "features" , labelCol = "label" , predictionCol = "prediction" ,
1427
1428
maxIter = 100 , tol = 1e-6 , seed = None , layers = None , blockSize = 128 , stepSize = 0.03 ,
1428
- solver = "l-bfgs" , initialWeights = None ):
1429
+ solver = "l-bfgs" , initialWeights = None , probabilityCol = "probability" ,
1430
+ rawPredicitionCol = "rawPrediction" ):
1429
1431
"""
1430
1432
__init__(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
1431
1433
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
1432
- solver="l-bfgs", initialWeights=None)
1434
+ solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1435
+ rawPredicitionCol="rawPrediction")
1433
1436
"""
1434
1437
super (MultilayerPerceptronClassifier , self ).__init__ ()
1435
1438
self ._java_obj = self ._new_java_obj (
@@ -1442,11 +1445,13 @@ def __init__(self, featuresCol="features", labelCol="label", predictionCol="pred
1442
1445
@since ("1.6.0" )
1443
1446
def setParams (self , featuresCol = "features" , labelCol = "label" , predictionCol = "prediction" ,
1444
1447
maxIter = 100 , tol = 1e-6 , seed = None , layers = None , blockSize = 128 , stepSize = 0.03 ,
1445
- solver = "l-bfgs" , initialWeights = None ):
1448
+ solver = "l-bfgs" , initialWeights = None , probabilityCol = "probability" ,
1449
+ rawPredicitionCol = "rawPrediction" ):
1446
1450
"""
1447
1451
setParams(self, featuresCol="features", labelCol="label", predictionCol="prediction", \
1448
1452
maxIter=100, tol=1e-6, seed=None, layers=None, blockSize=128, stepSize=0.03, \
1449
- solver="l-bfgs", initialWeights=None)
1453
+ solver="l-bfgs", initialWeights=None, probabilityCol="probability", \
1454
+ rawPredicitionCol="rawPrediction"):
1450
1455
Sets params for MultilayerPerceptronClassifier.
1451
1456
"""
1452
1457
kwargs = self ._input_kwargs
0 commit comments