Documentation

Classification Trees and Regression Trees

Decision trees for regression and classification

To grow a classification tree, use the Classification Learner App. Alternatively, grow a classification tree using fitctree. To grow a regression tree, use fitrtree. After growing either type of decision tree, predict labels or responses by passing the tree and predictor data to predict.

Apps

Classification Learner Train models to classify data using supervised machine learning

Functions

fitctree Fit classification tree
predict Predict classification
fitrtree Binary decision tree for regression
predict Predict response of regression tree
templateTree Create decision tree template
loss Classification error
view View tree
prune Produce sequence of subtrees by pruning
crossval Cross-validated decision tree
predictorImportance Estimates of predictor importance
loss Regression error
view View tree
prune Produce sequence of subtrees by pruning
crossval Cross-validated decision tree
predictorImportance Estimates of predictor importance

Classes

ClassificationTree Binary decision tree for classification
RegressionTree Regression tree
CompactClassificationTree Compact classification tree
ClassificationPartitionedModel Cross-validated classification model
CompactRegressionTree Compact regression tree
RegressionPartitionedModel Cross-validated regression model

Was this topic helpful?