Ridge regression without the intercept
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to fit a redge regression model to the training set data for predicting the data in the test set. I know that in the ridge function, there is a scaling flag (scaled) to determine whether the predictors are scaled and whether an intercept is fitted. However, what I want is a model that does not contain an intercept, and I don't want to scale the predicting variables in the trianing set. If I set scaled=0, the regression does not scale the predicting variables, but the model includes an intercept. However, if I set scaled=1, the model does not include an intercept but it scales the predicting variables.
Is there a way that I can fit the ridge regression without the intercept and without scaling the variables?
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Linear Regression en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!