8000 [MRG+1] Removed wrong warning message about alpha in ElasticNet by Sentient07 · Pull Request #8565 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG+1] Removed wrong warning message about alpha in ElasticNet #8565

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

Merged
merged 1 commit into from
Mar 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sklearn/linear_model/cd_fast.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def enet_coordinate_descent(np.ndarray[floating, ndim=1] w,
cdef floating *R_data = <floating*> R.data
cdef floating *XtA_data = <floating*> XtA.data

if alpha == 0:
warnings.warn("Coordinate descent with alpha=0 may lead to unexpected"
if alpha == 0 and beta == 0:
warnings.warn("Coordinate descent with no regularization may lead to unexpected"
" results and is discouraged.")

with nogil:
Expand Down
0