Hi Ariel.
We are not storing them any more because of memory issues, but you can recover them using the random state of the tree:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/forest.py#L76

> indices = _generate_sample_indices(tree.random_state, n_samples)

Hth,
Andy


On 03/04/2016 07:04 PM, Ariel Rokem wrote:
Hi everyone,

Is there some way to identify the samples that were used in constructing each tree in a RandomForest* object?

I am looking for the equivalent of "keep.inbag" in this R implementation: http://math.furman.edu/~dcs/courses/math47/R/library/randomForest/html/randomForest.html <http://math.furman.edu/%7Edcs/courses/math47/R/library/randomForest/html/randomForest.html>

Thanks!

Ariel


------------------------------------------------------------------------------


_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to