CyborgDroid commented on a change in pull request #26838: 
[SPARK-30144][ML][PySpark] Make MultilayerPerceptronClassificationModel extend 
MultilayerPerceptronParams
URL: https://github.com/apache/spark/pull/26838#discussion_r359017329
 
 

 ##########
 File path: python/pyspark/ml/classification.py
 ##########
 @@ -2274,21 +2276,21 @@ def setSolver(self, value):
         return self._set(solver=value)
 
 
-class 
MultilayerPerceptronClassificationModel(JavaProbabilisticClassificationModel, 
JavaMLWritable,
+class 
MultilayerPerceptronClassificationModel(JavaProbabilisticClassificationModel,
+                                              _MultilayerPerceptronParams, 
JavaMLWritable,
                                               JavaMLReadable):
     """
     Model fitted by MultilayerPerceptronClassifier.
 
     .. versionadded:: 1.6.0
     """
 
-    @property
-    @since("1.6.0")
-    def layers(self):
+    @since("3.0.0")
+    def setLayers(self, value):
 
 Review comment:
   The purpose of the extractParamMap function is to expose all parameters used 
to train the model. Having to execute all getters is not a good approach or 
solution.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to