Ridge Regression

Permalink

Cannot retrieve contributors at this time

Ridge regression

Regression

Ridge regression addresses some of the problems of ordinary_least_squares by imposing a penalty on the size of the coefficients. The ridge coefficients minimize a penalized residual sum of squares:

The complexity paramete controls the amount of shrinkage the larger the value of , the greater the amount of shrinkage and thus the coefficients become more robust to collinearity.

As with other linear models, Ridge will take in its fit method arrays X, y and will store the coefficients w of the linear model in its coef_ member:

Last updated

Was this helpful?