RandomForestClassifier(oob_score=True) requires which condition to produce a meaningful out-of-bag score?
Correct answer
D. bootstrap=True, since out-of-bag samples exist only when each tree is trained on a bootstrap resample
14 views
D. bootstrap=True, since out-of-bag samples exist only when each tree is trained on a bootstrap resample
14 views
Out-of-bag estimation uses the roughly 37 percent of samples left out of each bootstrap sample as a built-in validation set, so it requires bootstrap=True. The score approximates cross-validation at no extra fitting cost but is noisy with few trees and unreliable when samples are not independent. It is available only on ensembles that resample, not on a single tree.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is D? Ask here and get an explanation.