Skip to content
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

[MRG+2] change tol in test ridge #11587

Merged
merged 2 commits into from Jul 17, 2018

Conversation

Projects
None yet
4 participants
@sergulaydore
Copy link
Contributor

sergulaydore commented Jul 17, 2018

Reference Issues/PRs

Fixes #11200 (Instability in test_ridge.py::test_ridge_sample_weights ). The test was failing for some random states. We observed 26 failures for 100 runs.

What does this implement/fix? Explain your changes.

The problem was that the default tolerance in Ridge was 1e-3 and assert_almost_equal uses a tolerance of 1e-6. Adding tol=1e-6 to Ridge fixes the issue.

Any other comments?

The run time takes approximately 1.3 times of previous.
See more details at #11200 (comment)

@TomDLT

TomDLT approved these changes Jul 17, 2018

Copy link
Member

TomDLT left a comment

LGTM, thanks !

@agramfort agramfort changed the title change tol in test ridge [MRG+2] change tol in test ridge Jul 17, 2018

@GaelVaroquaux

This comment has been minimized.

Copy link
Member

GaelVaroquaux commented Jul 17, 2018

Something weird is happening in appveyor. Does someone understand?

I think that I'll still merge.

@GaelVaroquaux

This comment has been minimized.

Copy link
Member

GaelVaroquaux commented Jul 17, 2018

OK, merging!

@GaelVaroquaux GaelVaroquaux merged commit a496491 into scikit-learn:master Jul 17, 2018

4 of 5 checks passed

continuous-integration/appveyor/pr AppVeyor build failed
Details
ci/circleci: deploy Your tests passed on CircleCI!
Details
ci/circleci: python2 Your tests passed on CircleCI!
Details
ci/circleci: python3 Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@sergulaydore sergulaydore deleted the sergulaydore:instability_in_test_rigde branch Jul 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.