Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

SetDefaultYfit - Class: CompactTreeBagger

Set default value for predict

Syntax

B = SetDefaultYfit(B,Yfit)

Description

B = SetDefaultYfit(B,Yfit) sets the default prediction for ensemble B to Yfit. The default prediction must be a character variable for classification or a numeric scalar for regression. This setting 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.

See Also

DefaultYfit, predict, TreeBagger.DefaultYfit

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS