Classification Learner
Train models to classify data using supervised machine learning
Description
The Classification Learner app trains models to classify data. Using this app, you can explore supervised machine learning using various classifiers. You can explore your data, select features, specify validation schemes, train models and optimize hyperparameters, assess results, and investigate how specific predictors contribute to model predictions. Perform automated training to search for the best classification model type, including decision trees, discriminant analysis models, support vector machines, logistic regression models, nearest neighbors, naive Bayes models, kernel approximation models, ensemble models, and neural network classification models. To compare models, use the metric results table and view results plots in the app.
Perform supervised machine learning by supplying a known set of observations of input data (predictors) and known responses (labels or classes). Use the observations to train a model that generates predicted responses for new input data. You can then check model performance using a test data set. To understand how the model uses predictors to make predictions, use global and local interpretability tools, such as partial dependence plots, LIME values, and Shapley values.
To use the trained model with new data, you can export the model to the workspace, Simulink®, and MATLAB® Production Server™. You can generate MATLAB code to recreate the trained model outside of the app and explore programmatic classification and further customization of the model training workflow. Export the model training code to Experiment Manager to perform additional tasks, such as changing the training data, adjusting hyperparameter search ranges, and running custom training experiments.
Tip
To get started, in the Models section of the Learn tab, try All Quick-To-Train to train a selection of models. See Automated Classifier Training.
Required Products
MATLAB
Statistics and Machine Learning Toolbox™
Open the Classification Learner App
MATLAB Toolstrip: On the Apps tab, under Machine Learning and Deep Learning, click the app icon.
MATLAB command prompt: Enter
classificationLearner.
Examples
- Start a Classification Learner or Regression Learner Session
- Select Validation Scheme in Classification Learner or Regression Learner
- Train Classification Models in Classification Learner App
- Choose Classifier Options in Classification Learner
- Visualize and Assess Classifier Performance in Classification Learner
- Import Trained Model from Workspace into Classification Learner or Regression Learner
- Test Trained Models in Classification Learner or Regression Learner
- Export Classification Model to Predict New Data
Programmatic Use
Limitations
Classification Learner does not support model deployment to MATLAB Production Server in MATLAB Online™.
Version History
Introduced in R2015aSee Also
Apps
Functions
fitctree|fitcdiscr|fitcsvm|fitclinear|fitcecoc|fitcknn|fitckernel|fitcensemble|fitcnet|fitglm
