Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

分类树

用于多类学习的二叉决策树

要以交互方式生成分类树,可以使用分类学习器。为了获得更大的灵活性,可以在命令行中使用 fitctree 生成分类树。生成分类树后,可以将树和新的预测变量数据传递给 predict,以预测标签。

App

分类学习器使用有监督的机器学习训练模型以对数据进行分类

模块

ClassificationTree PredictClassify observations using decision tree classifier

函数

全部展开

fitctreeFit binary decision tree for multiclass classification
compactCompact tree
pruneProduce sequence of classification subtrees by pruning
cvlossClassification error by cross validation
limeLocal interpretable model-agnostic explanations (LIME)
nodeVariableRangeRetrieve variable range of decision tree node
partialDependenceCompute partial dependence
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
predictorImportanceEstimates of predictor importance for classification tree
shapleyShapley values
surrogateAssociationMean predictive measure of association for surrogate splits in classification tree
viewView classification tree
crossvalCross-validated decision tree
kfoldEdgeClassification edge for cross-validated classification model
kfoldLossClassification loss for cross-validated classification model
kfoldMarginClassification margins for cross-validated classification model
kfoldPredictClassify observations in cross-validated classification model
kfoldfunCross-validate function for classification
lossClassification error
resubLossClassification error by resubstitution
compareHoldoutCompare accuracies of two classification models using new data
edgeClassification edge
marginClassification margins
resubEdgeClassification edge by resubstitution
resubMarginClassification margins by resubstitution
testckfoldCompare accuracies of two classification models by repeated cross-validation
predictPredict labels using classification tree
resubPredictPredict resubstitution labels of classification tree
gatherGather properties of Statistics and Machine Learning Toolbox object from GPU

ClassificationTreeBinary decision tree for multiclass classification
CompactClassificationTreeCompact classification tree
ClassificationPartitionedModelCross-validated classification model

主题