Tutorials#
Step-by-step guides for common YASA workflows.
Quickstart
A walkthrough of YASA’s core features using real PSG data: loading recordings, working with hypnograms, spectral analysis, and event detection.
Working with Hypnograms
Learn how to create, manipulate, analyze, and visualize sleep hypnograms
using the Hypnogram class.
Evaluating a wearable or staging algorithm against a reference
Benchmark a wearable or a staging algorithm against PSG, following the Menghini et al. (2021) framework: epoch-by-epoch agreement, error matrices, and Bland-Altman analysis of sleep statistics.
Migrating to the Hypnogram class
Coming from YASA 0.6? Step-by-step patterns for updating code that used
integer arrays and the old standalone functions to the new
Hypnogram API.