braindecode.augmentation.Compose#

class braindecode.augmentation.Compose(transforms)[source]#

Transform composition.

Callable class allowing to cast a sequence of Transform objects into a single one.

Parameters:

transforms (list) – Sequence of Transforms to be composed.

Methods

forward(X, y)[source]#

General forward pass for an augmentation transform.

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

  • y (torch.Tensor | None) – EEG labels for the example or batch. Defaults to None.

Returns:

  • torch.Tensor – Transformed inputs.

  • torch.Tensor, optional – Transformed labels. Only returned when y is not None.

Examples using braindecode.augmentation.Compose#

Data Augmentation on BCIC IV 2a Dataset

Data Augmentation on BCIC IV 2a Dataset