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+1] Avoid occasional failure of test_kernel_ridge_singular_kernel #9542

Merged
merged 1 commit into from
Aug 14, 2017
Merged

[MRG+1] Avoid occasional failure of test_kernel_ridge_singular_kernel #9542

merged 1 commit into from
Aug 14, 2017

Conversation

qinhanmin2014
Copy link
Member

Reference Issue

Fixes #9535

What does this implement/fix? Explain your changes.

I'll try to only add a random state to ensure a certain output of the test.
From my perspective, it's enough if CIs are green.
Kindly tell me if we need to reduce the decimal requirement of assert_array_almost_equal.

Any other comments?

@jnothman
Copy link
Member

Oh, if that source of randomness is the issue, then great.

@jnothman
Copy link
Member

Have you managed to locally reproduce the failure?

@qinhanmin2014
Copy link
Member Author

@jnothman
Sorry. I have tried but failed to reproduce it since it only occurred occassionally. The only thing I can ensure is that before the modification, the result of the test(pred1 & pred2) varies. After adding the random_state, the result is the same.
For convience, I paste the two error logs below:
2017-08-13_223346
2017-08-13_223328

@qinhanmin2014 qinhanmin2014 changed the title [WIP] Avoid occasional failure of test_kernel_ridge_singular_kernel [MRG] Avoid occasional failure of test_kernel_ridge_singular_kernel Aug 13, 2017
@qinhanmin2014
Copy link
Member Author

@jnothman CIs are green. From my perspective, I tend to believe that the occasional test failure is due to small amount of certain random state.

@jnothman
Copy link
Member

jnothman commented Aug 13, 2017 via email

@jnothman jnothman changed the title [MRG] Avoid occasional failure of test_kernel_ridge_singular_kernel [MRG+1] Avoid occasional failure of test_kernel_ridge_singular_kernel Aug 13, 2017
@jnothman
Copy link
Member

LGTM

@NelleV NelleV merged commit f9332d5 into scikit-learn:master Aug 14, 2017
@qinhanmin2014 qinhanmin2014 deleted the my-feature-4 branch August 15, 2017 10:09
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_kernel_ridge_singular_kernel sometimes fails on Travis
3 participants