sleepless.utils.stats_protocol#

Compute Statistics for protocols.

Functions

make_stats(dataset[, out_path, attributes, bins])

Compute different statistics on the subsets of dataset and created figure of the statistics saved.

sleepless.utils.stats_protocol.make_stats(dataset, out_path=None, attributes=['age', 'gender'], bins=[0, 18, 60, 70, 80, 90, 100, 110])[source]#

Compute different statistics on the subsets of dataset and created figure of the statistics saved.

Parameters:
  • dataset (dict[str, list[DelayedSample]]) – A dictionary containing different sets (e.g. train,test).

  • keep – a list of attribute on which we perform analysis

  • out_path (Optional[str]) – the path location where files will be saved

  • bins (list[int]) – definition of the age categories

Return type:

list[Figure]