本页对应的英文页面已更新,但尚未翻译。 若要查看最新内容,请点击此处访问英文页面。
要以交互方式生成分类树,可以使用 Classification Learner App。为了获得更大的灵活性,可以在命令行中使用 fitctree
生成分类树。生成分类树后,可以将树和新的预测变量数据传递给 predict
,以预测标签。
Classification Learner | 使用有监督的机器学习训练模型以对数据进行分类 |
ClassificationTree | Binary decision tree for multiclass classification |
CompactClassificationTree | Compact classification tree |
ClassificationPartitionedModel | Cross-validated classification model |
Train Decision Trees Using Classification Learner App
Create and compare classification trees, and export trained models to make predictions for new data.
Supervised Learning Workflow and Algorithms
Understand the steps for supervised learning and the characteristics of nonparametric classification and regression functions.
Understand decision trees and how to fit them to data.
To grow decision trees, fitctree
and
fitrtree
apply the standard CART algorithm by default to
the training data.
Create and view a text or graphic description of a trained decision tree.
Visualize Decision Surfaces of Different Classifiers
This example shows how to visualize the decision surface for different classification algorithms.
Splitting Categorical Predictors in Classification Trees
Learn about the heuristic algorithms for optimally splitting categorical variables with many levels while growing decision trees.
Improving Classification Trees and Regression Trees
Tune trees by setting name-value pair arguments in
fitctree
and fitrtree
.
Prediction Using Classification and Regression Trees
Predict class labels or responses using trained classification and regression trees.
Predict Out-of-Sample Responses of Subtrees
Predict responses for new data using a trained regression tree, and then plot the results.