Visualize#

The goal of the visualize script is to help the user analyzing the results, by providing interactive plotting of mis/well-classified epochs and visualizing it’s respective raw data in another window by selecting a epochs on the figure.

While launching the script this first figure appears:

../_images/fig_wellclass_epochs.jpg

By selecting an epoch on the previous figure the next window with the raw data will open.

../_images/raw_data.jpg

You can also select another epoch, the raw data window will update.

You may issue sleepless visualize --help for a help message containing more detailed instructions.

To visualize predictions for one specific psg file, use the sub-command visualize:

sleepless visualize -vv <dataset> -p <path/to/predictions> -s <subset> -n <sample> -t <type> -o <path/to/output_folder>

Replace <dataset> by the appropriate configuration files. Replace <path/to/predictions> with a path leading to the model predictions. Replace <path/to/output_folder> with a path where the tables and plot from the analysis will be stored, and choose a subset and a patient number by replacing <subset> and <sample>. replace <type> by one of the following options: misclassified, wellclassified.