In RandomForestClassifier, what does the n_estimators parameter control?
Correct answer
D. The number of decision trees in the ensemble
16 views
D. The number of decision trees in the ensemble
16 views
n_estimators sets how many individual decision trees the forest grows before averaging their votes, and more trees usually reduce variance up to a point of diminishing returns. It is distinct from max_depth, which limits each tree's depth, and from max_features, which controls how many features each split may examine. Increasing n_estimators costs training time and memory rather than accuracy directly.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.