A toy model, trained on toy data generated from spikeinterface.
Used to try out the download features of hugging face hub.
This can be used to automatically label a sorting in spikeinterface. Provided you have a sorting_analyzer, it is used as follows
1from huggingface_hub import hf_hub_download
2import skops.io as skio
3from spikeinterface.curation import auto_label_units
4
5new_model_path = hf_hub_download(repo_id="chrishalcrow/toy_data_model", filename="best_model.skops")
6pipeline = skio.load(new_model_path, trusted='numpy.dtype')
7
8auto_label_units(sorting_analyzer = sorting_analyzer, pipeline = pipeline)
1from spikeinterface.curation import auto_label_units, load_pipeline
2
3pipeline = load_pipeline('a_folder_for_a_pipeline')
4auto_label_units(sorting_analyzer = sorting_analyzer, pipeline = pipeline)