Skip to content

[MRG] TST Adapt rtol to precision in a sparsefuncs test #16514

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

jeremiedbb
Copy link
Member

test_csr_row_norms did not have a fixed random_state so failure is hard to catch. It appeared in #16499, see https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=13730&view=logs&jobId=91634bb0-5686-577d-d1fa-65c16f031456

The issue is that the default rtol (1e-7) of assert_allclose is not adapted to float32 because in that case machine precision is ~1.2e-7.

@rth
Copy link
Member

rth commented Feb 21, 2020

There is #16509 already..

@jeremiedbb jeremiedbb closed this Feb 21, 2020
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.

2 participants