Bring-Your-Own-Dataset (BYOD)
The Bring-Your-Own-Dataset (BYOD) feature allows users to add custom datasets for training and evaluating models. This feature is useful when working with proprietary or custom datasets that are not available in the SleepKit library.
How it Works
-
Create a Dataset: Define a new dataset by creating a new Python file. The file should contain a class that inherits from the
HKDataset
base class and implements the required methods. -
Register the Dataset: Register the new dataset with the
sk.DatasetFactory
by calling theregister
method. This method takes the dataset name and the dataset class as arguments. -
Use the Dataset: The new dataset can now be used with the
sk.DatasetFactory
to perform various operations such as downloading and generating data.