treetest
has been removed.
Create a tree object, T
, using
fitctree
for a ClassificationTree
object or fitrtree
for a
RegressionTree
object, and replace
treetest
with the appropriate method.
Replace treetest(T,'resubstitution')
with
resubLoss(T)
.
Replace treetest(T,'test',X,Y)
with
loss(T,X,Y)
.
Replace treetest(T,'crossvalidate',X,Y)
with
cvloss(T)
.
For more information, see the resubLoss
,
loss
, or cvloss
method reference
pages of the ClassificationTree
or
RegressionTree
class in the Statistics and Machine
Learning Toolbox documentation.