OOBIndices property

Class: TreeBagger

Indicator matrix for out-of-bag observations


The OOBIndices property is a logical array of size Nobs-by-NTrees where Nobs is the number of observations in the training data and NTrees is the number of trees in the ensemble. The (I,J) element is true if observation I is out-of-bag for tree J and false otherwise. In other words, a true value means observation I was not selected for the training data used to grow tree J.

Was this topic helpful?