Normalization in ridge regression when there is no intercept
Hello everyone, I have just recognized that when using ridge regression without an intercept no normalization is performed even if the argument "normalize" is set to True. Though it is, of course, no problem to manually normalize the input matrix X I have become curious if there was a special reason to not normalize the data, e.g. the columns of X scaled (but not centered to have mean zero) to have unit norm such that their lengths do not affect the outcome. Thanks in advance! Emre
On 06/06/2019 14:56, ahmetcik wrote:
I have just recognized that when using ridge regression without an intercept no normalization is performed even if the argument "normalize" is set to True.
It's a known longstanding issue https://github.com/scikit-learn/scikit-learn/issues/3020 It would be indeed good to find a solution. -- Roman
participants (2)
-
ahmetcik -
Roman Yurchak