huaxingao commented on issue #25776: [SPARK-28985][PYTHON][ML] Add common 
classes (JavaPredictor/JavaClassificationModel/JavaProbabilisticClassifier) in 
PYTHON
URL: https://github.com/apache/spark/pull/25776#issuecomment-531998474
 
 
   @srowen 
   This PR is mainly for refactoring, but  it adds the following get/setXXX. 
   ```
   LinearSVCModel
   
   - get/setFeatureCol
   - get/setPredictionCol
   - get/setLabelCol
   - get/setRawPredictionCol
   - predict
   
   LogisticRegressionModel
   DecisionTreeClassificationModel
   RandomForestClassificationModel
   GBTClassificationModel
   NaiveBayesModel
   MultilayerPerceptronClassificationModel
   
   - get/setFeatureCol
   - get/setPredictionCol
   - get/setLabelCol
   - get/setRawPredictionCol
   - get/setProbabilityCol
   - predict
   
   LinearRegressionModel
   IsotonicRegressionModel
   DecisionTreeRegressionModel
   RandomForestRegressionModel
   GBTRegressionModel
   AFTSurvivalRegressionModel
   GeneralizedLinearRegressionModel
   
   - get/setFeatureCol
   - get/setPredictionCol
   - get/setLabelCol
   - predict
   ```
   After next Python/Scala parity jira spark-29093(Remove automatically 
generated param setters in ```_shared_params_code_gen.py```), the setXXX will 
be removed from Models, only setXXX are left. This matches Scala behavior 
exactly. 

----------------------------------------------------------------
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