sleepless.utils.matplotlib_utils#
Some matplotlib variables.
Functions
|
Filter event dictionary with events code present in a list, this list should only contains, y_label, y_pred (both or only one of them) |
|
Classes
|
- sleepless.utils.matplotlib_utils.get_sleep_stage_labels(y_class)[source]#
Filter event dictionary with events code present in a list, this list should only contains, y_label, y_pred (both or only one of them)
Event index must follow the following mapping:
- event_dic = {
“Stage W”: 0, “N1”: 1, “N2”: 2, “N3”: 3, “REM”: 4, “Stage ?”: 5, }