Precision/recall from out-of-bag predictions in RandomForestClassifier

I would like to use out-of-bag training/validation with a classifier such as RandomForestClassifier.

Is it possible to get the out-of-bag predictions?

I want the OOB predictions so I can compute precision/recall on instances not used to train the classifier.

If there are alternative approaches to getting the precision/recall, please let me know.

Topic c random-forest scikit-learn classification

Category Data Science


It is possible to use RandomForestClassifer.oob_decision_function_ to compute the out-of-bag estimate on the training set.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.