raphaelvallat/yasa: v0.8.1

This is a minor release. Its highlight is the support for repeated measures in the evaluation module, for validation studies that record several nights per participant. It also adds a new method to compare detected events based on their overlap and fixes a deprecation warning with pandas 3.1. Evaluation module: support several nights per subject (repeated measures) yasa.EpochByEpochAgreement and yasa.SleepStatsAgreement accept a new subjects argument that tells YASA which participant each night belongs to. The nights of a participant are not independent, and treating them as such makes the confidence intervals and p-values too small. With subjects , both classes account for the clustering of nights within participants, following Bland & Altman (2007) , Zou (2013) and Parker et al. (2016) . With one night per participant, the results are unchanged. See the new Several nights per subject section of the evaluation tutorial. (#279) Improvements yasa.compare detection and the compare channels and compare detection methods of the detection results accept method="intersection" to match events based on the overlap of their intervals (intersection over union) instead of the distance between their onsets. This makes it possible to compare detections with different sampling frequencies, and prevents split, merged or duplicate detections from all counting as true positives. The default method="distance" is unchanged. (#88, #278) compare channels is up to 6 times faster, as the events of each channel are now validated and sorted once and each pair of channels is compared once. (#282) Bugfixes Fixed a Pandas4Warning in yasa.SleepStaging with pandas 3.1, which deprecates the inplace keyword of sort index . (#283) Dependencies statsmodels is a new optional dependency, required only for the mixed models of yasa.SleepStatsAgreement with several nights per participant. Install it with pip install yasa[stats] (included in yasa[full] ).

Link
https://zenodo.org/records/23637992
Found by
Zenodo
Authors
Raphael Vallat, Remington Mallett, Moritz Gerster, S.J. Guillot, Bhargav Kowshik, Chin-Hui Chen, Daria Agafonova, Darigov Research, Eric Larson, Matias Andina, Nabil Alibou, Regina Hertfelder Reynolds, Sen-wen DENG, bartromb, paulroujansky
Categories
evaluation
Published
2026-10-25
Last seen by the radar
2026-10-25
Downloads
891
Views
3,948
Radar score
49.35 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.23637992
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo