Skip to content

Improve robustness of model classifier tests#4447

Merged
alejoe91 merged 6 commits intoSpikeInterface:mainfrom
chrishalcrow:improve-classifier-test
Mar 16, 2026
Merged

Improve robustness of model classifier tests#4447
alejoe91 merged 6 commits intoSpikeInterface:mainfrom
chrishalcrow:improve-classifier-test

Conversation

@chrishalcrow
Copy link
Member

@chrishalcrow chrishalcrow commented Mar 16, 2026

Our model based curation tests are flakey, leading to annoying test failures (e.g. #4443).

This PR makes the tests more robust by training the curation model on data which should be easy to classify: ten good units and ten junk units.

EDIT: it's difficult to seed this fully, because of the hyperparameter search in the model training. I've run the tests 1000 times and they pass. At the very least, this is easier to make even more robust in the future if we keep having problems...

@chrishalcrow chrishalcrow added curation Related to curation module testing Related to test routines labels Mar 16, 2026
@chrishalcrow chrishalcrow changed the title Improve robustness of model classifier test Improve robustness of model classifier tests Mar 16, 2026
@alejoe91 alejoe91 added this to the 0.104.0 milestone Mar 16, 2026
@alejoe91 alejoe91 merged commit 6a9966e into SpikeInterface:main Mar 16, 2026
15 checks passed
@chrishalcrow chrishalcrow deleted the improve-classifier-test branch March 16, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

curation Related to curation module testing Related to test routines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants