zhengruifeng opened a new pull request #27254: [SPARK-30543][ML][PYSPARK] 
RandomForest add Param bootstrap to control sampling method
URL: https://github.com/apache/spark/pull/27254
 
 
   ### What changes were proposed in this pull request?
   add a param `bootstrap` to control whether bootstrap samples are used.
   
   
   ### Why are the changes needed?
   Current RF with numTrees=1 will directly build a tree using the orignial 
dataset,
   
   while with numTrees>1 it will use bootstrap samples to build trees.
   
   This design is for training a DecisionTreeModel by the impl of RandomForest, 
however, it is somewhat strange.
   
   In Scikit-Learn, there is a param 
[bootstrap](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier)
 to control whether bootstrap samples are used.
   
   
   ### Does this PR introduce any user-facing change?
   Yes, new param is added
   
   
   ### How was this patch tested?
   existing testsuites
   

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