Main Content

Regularization

Ridge regression, lasso, and elastic nets for linear models

For greater accuracy on low- through medium-dimensional data sets, implement least-squares regression with regularization using lasso or ridge.

For reduced computation time on high-dimensional data sets, fit a regularized linear regression model using fitrlinear.

Functions

expand all

lassoLasso or elastic net regularization for linear models
ridgeRidge regression
lassoPlotTrace plot of lasso fit
fitrlinearFit linear regression model to high-dimensional data
predictPredict response of linear regression model

Objects

RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data

Topics