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

Fixing flaky failures in test_umap_metrics.py #770

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crawlingcub
Copy link

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.

None yet

1 participant