Skip to content

Fixing flaky failures in test_umap_metrics.py#770

Open
crawlingcub wants to merge 1 commit intolmcinnes:masterfrom
crawlingcub:patch-1
Open

Fixing flaky failures in test_umap_metrics.py#770
crawlingcub wants to merge 1 commit intolmcinnes:masterfrom
crawlingcub:patch-1

Conversation

@crawlingcub
Copy link
Copy Markdown

Hi,

I tried running your tests by removing the seed setting lines (such as np.random_seed(SEED) in umap/tests/conftests.py. I observed that test test_grad_metrics_match_metrics in test_umap_metrics.py fails 25/500 times that I ran. Each time the assertion for the mahalanobis metric failed.

Changing the default decimal places from 6 to 5 makes sure that the test does not fail (without seeds). Please let me know if this change seems reasonable. If yes, then I can look into some other tests which also failed during this experiment.

If you have any other suggestions, I will be happy to look into it and/or include it in this PR. Please let me know if you need any other info.

Thanks!

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.

1 participant