Skip to content

Conversation

@alejoe91
Copy link
Member

The auto_label_units was used only for the model-based labeling, but there are other ways to label units! (see #4304 )

This PR renames auto_label_units to model_based_label_units. In addition, it adds a unitrefine_label_units that automate the noise/neural + MUA/SUA classification. By default, lightweight models are used since they give almost the same performance as the full models, but don't depend on PCA metrics.

@alejoe91 alejoe91 requested a review from chrishalcrow January 22, 2026 15:21
@alejoe91 alejoe91 added the curation Related to curation module label Jan 22, 2026

assert "label" in labels.columns
assert "probability" in labels.columns
assert labels.shape[0] == len(sorting_analyzer_for_curation.sorting.get_unit_ids())
Copy link
Member

Choose a reason for hiding this comment

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

Can we add cases where each model is None as well. Just this test repeated but with just noise_neural_classifier=None, and just sua_mua_classifier=None.

#
# .. dropdown:: More about security
#
# Sharing models, with are Python objects, is complicated.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Sharing models, which are Python objects, is complicated.

cheeky docs correction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

curation Related to curation module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants