What is the default num_estimators in scikit-learn's RandomForest?



If we do not define number of trees to be built in random forest then how many trees
random forest internally creates?


Hey @chaitu,

If you see the RF Classifier documentation in sklearn(python),
The default number of trees is 10

Hope this helps :slight_smile:


Hi @mohdsanadzakirizvi ,

Thank you so much. That really helps :slightly_smiling_face:
Could you please let me know if this value is the same for the parameter ntree in the function randomForest in R programming.

Thank you,
Eeswara Chaitanya


The default value for ntree in R RandomForest function is 500.