This MATLAB function returns the labels tree predicts for the data tree.X. ... label is the predictions of tree on the data that fitctree used to create tree.
L = resubLoss (tree) returns the resubstitution loss, meaning the loss computed for the data that fitctree used to create tree. L = resubLoss (tree,Name,Value) returns the loss with additional options specified by one or more Name,Value pair arguments. You can specify several name-value pair arguments in any order as Name1,Value1,…,NameN,ValueN.
CutCategories. An n-by-2 cell array of the categories used at branches in tree, where n is the number of nodes. For each branch node i based on a categorical predictor variable x, the left child is chosen if x is among the categories listed in CutCategories{i,1}, and the right child is chosen if x is among those listed in CutCategories{i,2}.
matlab机器学习没看到啥教程,只有一系列函数,只好记录下:matlab每个机器学习方法都有很多种方式实现,并可进行高级配置(比如训练决策树时设置的各种参数),这里由于篇幅的限制,不再详细描述。