viirya 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_r358077265
########## File path: mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala ########## @@ -247,7 +247,8 @@ class MultilayerPerceptronClassifier @Since("1.5.0") ( } trainer.setStackSize($(blockSize)) val mlpModel = trainer.train(data) - new MultilayerPerceptronClassificationModel(uid, myLayers, mlpModel.weights) + val model = new MultilayerPerceptronClassificationModel(uid, mlpModel.weights) + model.setLayers(myLayers) Review comment: hmm, do we really have exposed parameters into the model? The purpose of this PR is to have training parameters in the model, but except for layers, seems other parameters are not set? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org