-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Unclear warning message for ElasticNet(l1_ratio=0) #8233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@agramfort git blames you, at least for the unclear documentation par :D |
warning comes from
in cd_fast.pyx where alpha is the L1 regularization so the warning should say something like
or
however thinking about it will depend on the conditioning of the prob 8000 lem.... the original motivation for this warning was the p >> n setup with no reg which will converge very slowly. |
But is there actually any convergence problem if |
let's go for proposal 2 then.
any volunteer for the PR?
|
I can work on this. i'll still fix this slight issue. |
ok thanks for testing.
+1 for the small fix
|
All reactions
No news for a while, can I take this if there is no on going work? |
You can take this ticket if you'd like. |
I am currently attempting to fit a Non Negative Least Square with an l2 penalization without having to reimplement it.
The solution I have adopted is to use
ElasticNet(positive=True, l1_ratio=0)
, but this yields confusing warning messages.Description
I am using ElasticNet with the parameter
l1_ratio=0
andpositive=True
. It yields a confusing warning message, as the warning message refers to a parameter calledalpha
, supposedly set to0
, but the onlyalpha
parameter the user has access to is not set to 0My assumption is that ElasticNet is not meant to be used with
l1_ratio=0
, which should be explictily mentioned, though this is as well unclear as the documentation mentions the following:Currently, l1_ratio <= 0.01 is not reliable, unless you supply your own sequence of alpha.
andalpha
is a float, set by default to 1.Steps/Code to Reproduce
The text was updated successfully, but these errors were encountered: