braindecode.augmentation.functional.sign_flip#

braindecode.augmentation.functional.sign_flip(X, y)[source]#

Flip the sign axis of each input.

Parameters:
  • X (Tensor) – EEG input example or batch.

  • y (Tensor) – EEG labels for the example or batch.

Return type:

tuple[Tensor, Tensor]

Returns:

  • torch.Tensor – Transformed inputs.

  • torch.Tensor – Transformed labels.