10000 [MRG] FIX lasso/elasticnet example did not add noise to simulated data. by NelleV · Pull Request #8427 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 2 commits into from
Feb 22, 2017

Conversation

NelleV
Copy link
Member
@NelleV NelleV commented Feb 21, 2017

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.

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.
@NelleV NelleV changed the title FIX lasso/elasticnet example did not add noise to simulated data. [MRG] FIX lasso/elasticnet example did not add noise to simulated data. Feb 21, 2017
@NelleV
Copy link
Member Author
NelleV commented Feb 21, 2017

Note also that this example does not run on python 3 (which I am happy to fix as well).

@codecov
Copy link
codecov bot commented Feb 21, 2017

Codecov Report

Merging #8427 into master will not change coverage.
The diff coverage is n/a.

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update daeba62...1d839cc. Read the comment docs.

@agramfort
Copy link
Member

please fix the rest as well. thx @NelleV

@GaelVaroquaux
Copy link
Member
GaelVaroquaux commented Feb 22, 2017 via email

@lesteve
Copy link
Member
lesteve commented Feb 22, 2017

Note also that this example does not run on python 3 (which I am happy to fix as well).

I believe this is fixed in master. To be slightly pedantic I think that is a combination of Python 3 + numpy 1.12 actually.

@lesteve
Copy link
Member
lesteve commented Feb 22, 2017

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.

@lesteve
Copy link
Member
lesteve commented Feb 22, 2017

OK CircleCI is passing, merging this one, thanks a lot!

@lesteve lesteve merged commit 9b75a81 into scikit-learn:master Feb 22, 2017
@NelleV
Copy link
Member Author
NelleV commented Feb 22, 2017

It was indeed fixed on master. My master branch was not up-to-date :)

sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
…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.
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
…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.
NelleV added a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
…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.
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
…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.
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
…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.
lemonlaug pushed a commit to lemonlaug/scikit-learn that referenced this pull request Jan 6, 2021
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0