On Mon, Mar 7, 2016 at 8:24 AM, Andreas Mueller <t3k...@gmail.com> wrote:

> 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)
>
>
Yes - very helpful - thanks! I have recorded our full solution for
posterity (and for google-ability) here:
http://stackoverflow.com/questions/35832786/in-bag-for-randomforest-objects/35872711



> 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
>
> Thanks!
>
> Ariel
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Scikit-learn-general mailing 
> listScikit-learn-general@lists.sourceforge.nethttps://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
>
>
------------------------------------------------------------------------------
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