braindecode.augmentation.SignFlip#
- class braindecode.augmentation.SignFlip(probability, random_state=None)[source]#
Flip the sign axis of each input with a given probability.
- Parameters
probability (float) – Float setting the probability of applying the operation.
random_state (int | numpy.random.Generator, optional) – Seed to be used to instantiate numpy random number generator instance. Used to decide whether or not to transform given the probability argument. Defaults to None.
Methods
- static operation(X, y)#
Flip the sign axis of each input.
- Parameters
X (torch.Tensor) – EEG input example or batch.
y (torch.Tensor) – EEG labels for the example or batch.
- Returns
torch.Tensor – Transformed inputs.
torch.Tensor – Transformed labels.
Examples using braindecode.augmentation.SignFlip
#
Data Augmentation on BCIC IV 2a Dataset
Data Augmentation on BCIC IV 2a Dataset