Regression Learner
Train regression models to predict data using supervised machine learning
Description
The Regression Learner app trains regression models to predict data. Using this app, 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 regression model type, including linear regression models, regression trees, Gaussian process regression models, support vector machines, efficiently trained linear regression models, kernel approximation models, ensembles of regression trees, and neural network regression 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. 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 regression 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 Regression Model Training.
Required Products
MATLAB
Statistics and Machine Learning Toolbox™
Open the Regression Learner App
MATLAB Toolstrip: On the Apps tab, under Machine Learning and Deep Learning, click the app icon.
MATLAB command prompt: Enter
regressionLearner.
Examples
- Start a Classification Learner or Regression Learner Session
- Select Validation Scheme in Classification Learner or Regression Learner
- Train Regression Models in Regression Learner App
- Choose Model Options In Regression Learner
- Visualize and Assess Model Performance in Regression Learner
- Import Trained Model from Workspace into Classification Learner or Regression Learner
- Test Trained Models in Classification Learner or Regression Learner
- Export Regression Model to Predict New Data
Programmatic Use
Limitations
Regression Learner does not support model deployment to MATLAB Production Server in MATLAB Online™.
Version History
Introduced in R2017aSee Also
Apps
Functions
fitrtree|fitlm|stepwiselm|fitrsvm|fitrlinear|fitrgp|fitrkernel|fitrensemble|fitrnet
