API
DatasetBaseConfig
Base configuration class for every dataset.
The configuration class tells the software which dataset is expected to be loaded.
Every dataset configuration inherits from this class, and they extend it with the necessary information to make to be able to create its respective "implementation" object that inhertis from IDataset.
Attributes: __DATASET_TYPE: Constant that determines the dataset type. It must be given in the constructor by its child class. subject_ids: Specifies a list of subject(s) to be fetched. If None, data of all subjects is fetched.
Source code in neuroceiling/dataaquisition/dataset.py
__init__(dataset_type)
Constructor.
Parameters:
-
dataset_type(str) –Dataset type, meant to be written by child class
DatasetFactory
Class that is responsible for creating the Dataset objects.
Source code in neuroceiling/dataaquisition/dataset.py
get_dataset(config)
classmethod
Static method meant to create an instance of the dataset based on its configuration.
:param config: Configuration of dataset to be created :return: The dataset instance
Source code in neuroceiling/dataaquisition/dataset.py
IDataset
Interface class of a dataset.
A dataset is a static, labeled bundle of data in which is used to train the brain decoding neural network.
Every dataset implements this interface