Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 'UseInstanceForTree' argument.

Was this topic helpful?