1. Home
  2. Data Science
  3. Scikit-learn
  4. In RandomForestClassifier, what does the n_estimators…

Added 30 Nov -0001

In RandomForestClassifier, what does the n_estimators parameter control?

  1. The maximum depth allowed for each tree
  2. The number of features considered at each split
  3. The fraction of samples drawn for bootstrapping
  4. The number of decision trees in the ensemble Correct answer

Correct answer

D. The number of decision trees in the ensemble

16 views

MCQSEXAM

Explanation

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.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Scikit-learn MCQs

Practise all Scikit-learn MCQs

Similar MCQs