braindecode.augmentation.TimeReverse¶
- class braindecode.augmentation.TimeReverse(probability, random_state=None)¶
Flip the time axis of each input with a given probability.
- Parameters
- probabilityfloat
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 time axis of each input.
- Parameters
- Xtorch.Tensor
EEG input example or batch.
- ytorch.Tensor
EEG labels for the example or batch.
- Returns
- torch.Tensor
Transformed inputs.
- torch.Tensor
Transformed labels.