braindecode.augmentation.TimeReverse#

class braindecode.augmentation.TimeReverse(probability, random_state=None)[source]#

Flip the time 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 time axis of each input.

Parameters
Returns

  • torch.Tensor – Transformed inputs.

  • torch.Tensor – Transformed labels.