The alpha
parameter for lasso regression can only be a float
#30893
Labels
alpha
parameter for lasso regression can only be a float
#30893
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue linked to the documentation
https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html#sklearn.linear_model.Lasso
The line "If an array is passed, penalties are assumed to be specific to the targets. Hence they must correspond in number." is found under the "Notes" section. However, in the parameters section and the source, alpha is listed as float, default=1.0
Suggest a potential alternative/fix
The line should be deleted. Better yet, allow
alpha
to be an array, like for https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html.The text was updated successfully, but these errors were encountered: