sleepless.configs.datasets#
Script for dataset config.
Functions
|
Creates a new configuration dataset from dictionary and transforms Take the subset of a database and apply on it a list of transforms. |
- sleepless.configs.datasets.make_dataset(subsets, transforms)[source]#
Creates a new configuration dataset from dictionary and transforms Take the subset of a database and apply on it a list of transforms.
- Parameters:
subsets (
dict
[str
,list
[DelayedSample
]]) – A subset of a database; dictionary containing a train and a test set.transforms (
list
[object
]) – A list of transforms that needs to be applied to all samples.dataset – A new subset dictionary containing a train and a test set but where data have been transform through the transform pipeline.
- Return type:
dict
[str
,list
[DelayedSample
]]