Fine-tune for Sleep Staging
mainTo adapt the pretrained model for sleep stage classification:
- Prepare Labels: Ensure you have CSV label files in the format
Start,Stop,StageName,StageNumber. These files must be named to correspond with your.EDFand.hdf5files (e.g.,mesa-sleep-0001.csv). - Configure: Check
configs/config_finetune_sleep_events.yamlfor staging parameters. - Fine-tune: Run
sleepfm/pipeline/finetune_sleep_staging.py. - Evaluate: Run
sleepfm/pipeline/evaluate_sleep_staging.pyto test on the test set.