可以选择各种算法来训练和验证回归模型。训练多个模型后，可以横向比较它们的验证误差，然后选择最佳模型。要帮助您确定使用哪种算法，请参阅Train Regression Models in Regression Learner App。
|回归学习器||Train regression models to predict data using supervised machine learning|
Workflow for training, comparing and improving regression models, including automated, manual, and parallel training.
Import data into Regression Learner from the workspace or files, find example data sets, and choose cross-validation or holdout validation options.
In Regression Learner, automatically train a selection of models, or compare and tune options of linear regression models, regression trees, support vector machines, Gaussian process regression models, ensembles of regression trees, and regression neural networks.
Compare model statistics and visualize results.
After training in Regression Learner, export models to the workspace, generate MATLAB® code, or generate C code for prediction.
Create and compare regression trees, and export trained models to make predictions for new data.
Identify useful predictors using plots, manually select features to include, and transform features using PCA in Regression Learner.
Automatically tune hyperparameters of regression models by using hyperparameter optimization.
Train a regression ensemble model with optimized hyperparameters.
Export and customize plots created before and after training.