Default value returned by
DefaultYfit property controls what predicted
TreeBagger returns when no prediction is
possible, for example when the
oobPredict method needs to predict for
an observation that is in-bag for all trees in the ensemble.
For classification, you can set this property to either
If you choose
'MostPopular' (default), the property
value becomes the name of the most probable class in the training
For regression, you can set this property to any numeric scalar. The default is the mean of the response for the training data.
If you set this property to
'' for classification
NaN for regression,
the in-bag observations from computation of the out-of-bagerror and