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

[MNT] speed up clustering dunder test #4982

Merged
merged 2 commits into from Aug 3, 2023
Merged

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Jul 29, 2023

This PR speeds up a costly test for the clustering estimator dunders, by using a much smaller dataset.
The test time was >1 min and should now be in the range of seconds at most.
Related to: #2890

Also removes the dependency on numba by using a clusterer that depends only on sklearn.

Test coverage does not change, as the requirements are only that the estimator is a clusterer, and produces a non-trivial clustering (ensured by the choice of parameters and random seeds).

@fkiraly fkiraly added maintenance Continuous integration, unit testing & package distribution module:clustering clustering module: time series clustering module:tests test framework functionality - only framework, excl specific tests labels Jul 29, 2023
@benHeid
Copy link
Contributor

benHeid commented Aug 2, 2023

Thank you for the PR and the speed up. This looks fine to me.

@fkiraly fkiraly merged commit 3e3d98c into main Aug 3, 2023
24 checks passed
@fkiraly fkiraly deleted the speed-test-cluster-dunder branch August 3, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Continuous integration, unit testing & package distribution module:clustering clustering module: time series clustering module:tests test framework functionality - only framework, excl specific tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants