biopsykit.sleep.sleep_wake_detection.utils module¶
Utility functions for sleep/wake detection algorithms.
- biopsykit.sleep.sleep_wake_detection.utils.rescore(predictions, epoch_length=30)[source]¶
Apply Webster’s rescoring rules to sleep/wake predictions.
- Parameters
predictions (array_like) – sleep/wake predictions
epoch_length (int) – length of actigraphy epoch in seconds
- Returns
rescored sleep/wake predictions
- Return type
array_like