huaxingao opened a new pull request #25929: [SPARK-29116][PYTHON][ML] Refactor 
py classes related to DecisionTree
URL: https://github.com/apache/spark/pull/25929
 
 
   
   
   ### What changes were proposed in this pull request?
   
   - Move tree related classes to a separate file ```tree.py```
   - add method ```predictLeaf``` in ```DecisionTreeModel```& 
```TreeEnsembleModel```
   
   
   ### Why are the changes needed?
   
   - keep parity between scala and python
   - easy code maintenance
   
   
   ### Does this PR introduce any user-facing change?
   Yes
   add method ```predictLeaf``` in ```DecisionTreeModel```& 
```TreeEnsembleModel```
   add ```setMinWeightFractionPerNode```  in ```DecisionTreeClassifier``` and 
```DecisionTreeRegressor```
   
   ### How was this patch tested?
   add some doc tests
   

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