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.

code_

The code of the dataset, which is also the string representation of the dataset.

Type:

str

data_

A dictionary representing the dataset, e.g.: {subject1: (samples1, labels1), subject2: (samples2, labels2), ...}

Type:

dict

subjects_

The subjects of the dataset.

Type:

list[int]

Notes

Added in version 0.0.3.

Changed in version 0.6.0: Moved to utils module.

Deprecated since version 0.7.0: MockDataset will be removed in 0.8.0.

__init__(dataset_gen, n_subjects: int)[source]

Methods

__init__(dataset_gen, n_subjects)

get_data(subject)

Return the data of a subject.