-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG] FIX lasso/elasticnet example did not add noise to simulated data. #8427
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
Conversation
The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
Note also that this example does not run on python 3 (which I am happy to fix as well). |
Codecov Report
@@ Coverage Diff @@
## master #8427 +/- ##
=======================================
Coverage 94.75% 94.75%
=======================================
Files 342 342
Lines 60902 60902
=======================================
Hits 57708 57708
Misses 3194 3194 Continue to review full report at Codecov.
|
please fix the rest as well. thx @NelleV |
Note also that this example does not run on python 3 (which I am happy to fix as well).
That would be cool.
|
I believe this is fixed in master. To be slightly pedantic I think that is a combination of Python 3 + numpy 1.12 actually. |
I looked at the generated example HTML and the plot looks extremely similar so LGTM. I pushed a minor change and I'll merge this once the CIs are green. Please ping if I forget. |
OK CircleCI is passing, merging this one, thanks a lot! |
It was indeed fixed on master. My master branch was not up-to-date :) |
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
…a. (scikit-learn#8427) The first argument of np.random.normal is the mean of the distribution, and not the output shape. The example thus did not add noise but only an intercept to the model.
The first argument of np.random.normal is the mean of the distribution, and
not the output shape. The example thus did not add noise but only an intercept
to the model.
Considering the comment, I assume this is a mistake.