Skip to content

Conversation

viclafargue
Copy link
Contributor

Answers #7068

@betatim
Copy link
Member

betatim commented Aug 12, 2025

Nice! Cool to see that this was an easy thing to fix!

Could you remove check_estimators_empty_data_messages from

"check_estimators_empty_data_messages",
so that the test runs? Maybe we can even remove some of the other tests as well from that list? Right now all of them are skipped because they cause memory errors.

@@ -547,6 +547,11 @@
# "check_transformers_unfitted": "UMAP does not raise error when transform called before fit",
"check_parameters_default_constructible": "UMAP parameters are mutated on init",
"check_fit_check_is_fitted": "UMAP passes check_is_fitted before being fit",
"check_estimators_empty_data_messages": "UMAP does not handle empty data",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much work would it be to make it so that the test passes instead of xfailing it? We already raise the right type of exception, is it "just" a question of adjusting the text to match what the check expects?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a bench of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] UMAP creates many std::bad_alloc errors when being tested in scikit-learn compatibility test suite
3 participants