简体   繁体   中英

The number of bootstraps in Random Forest (scikit-learn)

I am using RandomForestRegressor in python scikit-learn.

As I know, random forest algorithm takes random bootstraps samples. But I am not sure how to set and adjust the number of bootstraps.

Is n_estimators the parameter for setting the number of bootstraps? And is there any tips for setting good value of that value?

The sub-sample size is always the same as the original input sample size but the samples are drawn with replacement if bootstrap=True (default). Take a look here. http://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM