[scikit-learn] LassoCV.coef not implemented (I think)
Robert Slater
rdslater at gmail.com
Sun Jan 31 14:43:32 EST 2021
I was writing an example for my students when I came across what I think is
an issue. In version 24.1 using the LassoCV, the <object>.coef variable
should have a list of my coeficeients (at least according to my
understanding of the documents). However, the variable is not populated
nad throws an error
'LassoCV' object has no attribute 'coef'
I do have a .coef_ variable which I believe is the coefficient for the best
fit only.
the alphas and alphas_ variables have a similar issue in that alphas
returns nothing while alphas_ returns the list of alphas used.
I'm not sure if this is an documentation oversight or a real issue but
wanted to get clarification.
I can get what I need from o ther methods, but wanted to see if this needed
to be addressed.
Best Regards,
Robert Slater
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20210131/4b2456d4/attachment.html>
More information about the scikit-learn
mailing list