Skip to content

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

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

jeremiedbb wants to merge 1 commit into
scikit-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

rth commented Feb 21, 2020

Copy link
Copy Markdown
Member

There is #16509 already..

@jeremiedbb jeremiedbb closed this Feb 21, 2020
@jeremiedbb
jeremiedbb deleted the fix-test-csr-row-norms-float32 branch September 3, 2026 16:08
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