pyriemann_qiskit.utils.dataset.MockDataset¶
- class pyriemann_qiskit.utils.dataset.MockDataset(dataset_gen, n_subjects: int)[source]¶
A dataset with mock data.
- Parameters:
dataset_gen (Callable[[], (List, List)]) – A function to generate datasets. The function accepts no parameters and returns a pair of lists. The first list contains the samples, the second one the labels.
n_subjects (int) – The number of subjects in the dataset. A dataset will be generated for all subjects using the handler dataset_gen.
- data_¶
A dictionary representing the dataset, e.g.:
{subject1: (samples1, labels1), subject2: (samples2, labels2), ...}- Type:
Notes
Added in version 0.0.3.
Changed in version 0.6.0: Moved to utils module.
Deprecated since version 0.7.0:
MockDatasetwill be removed in 0.8.0.Methods
__init__(dataset_gen, n_subjects)get_data(subject)Return the data of a subject.