Class: ClassificationTree
Predict resubstitution response of tree
label = resubPredict(tree)
[label,posterior]
= resubPredict(tree)
[label,posterior,node]
= resubPredict(tree)
[label,posterior,node,cnum]
= resubPredict(tree)
[label,...] = resubPredict(tree,Name,Value)
returns
the labels label
= resubPredict(tree
)tree
predicts for the data tree.X
. label
is
the predictions of tree
on the data that fitctree
used to create tree
.
[
returns the posterior
class probabilities for the predictions.label
,posterior
]
= resubPredict(tree
)
[
returns the node
numbers of label
,posterior
,node
]
= resubPredict(tree
)tree
for the resubstituted data.
[
returns the predicted
class numbers for the predictions.label
,posterior
,node
,cnum
]
= resubPredict(tree
)
[label,...] = resubPredict(
returns
resubstitution predictions with additional options specified by one
or more tree
,Name,Value
)Name,Value
pair arguments.

The response If the 

Matrix or array of posterior probabilities for classes If the If 

The node numbers of If the If 

The class numbers that If the If 
fitctree
 predict
 resubEdge
 resubLoss
 resubMargin