Skip to content

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

Closed
jeremiedbb wants to merge 1 commit intoscikit-learn:masterfrom
jeremiedbb:fix-test-csr-row-norms-float32
Closed

[MRG] TST Adapt rtol to precision in a sparsefuncs test#16514
jeremiedbb wants to merge 1 commit intoscikit-learn:masterfrom
jeremiedbb:fix-test-csr-row-norms-float32

Conversation

@jeremiedbb
Copy link
Copy Markdown
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
Copy Markdown
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