Default value returned by predict
Description
The DefaultYfit property controls what predicted
value CompactTreeBagger returns when no prediction
is possible, for example when the predict method
needs to predict for an observation which has only false values in
the matrix supplied through 'useifort' argument.
For classification, you can set this property to either '' or 'MostPopular'.
If you choose 'MostPopular' (default), the property
value becomes the name of the most probable class in the training
data.
For regression, you can set this property to any numeric scalar.
The default is the mean of the response for the training data.
See Also
predict, setDefaultYfit, TreeBagger.DefaultYfit.
 | dcovary | | DefaultYfit property (TreeBagger) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit