braindecode.augmentation.Compose

class braindecode.augmentation.Compose(transforms)

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)

General forward pass for an augmentation transform.

Parameters
Xtorch.Tensor

EEG input example or batch.

ytorch.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