braindecode.augmentation.functional.channels_permute

braindecode.augmentation.functional.channels_permute(X, y, permutation)

Permute EEG channels according to fixed permutation matrix.

Suggested e.g. in [1]

Parameters
Xtorch.Tensor

EEG input example or batch.

ytorch.Tensor

EEG labels for the example or batch.

permutationlist

List of integers defining the new channels order.

Returns
torch.Tensor

Transformed inputs.

torch.Tensor

Transformed labels.

References

1

Deiss, O., Biswal, S., Jin, J., Sun, H., Westover, M. B., & Sun, J. (2018). HAMLET: interpretable human and machine co-learning technique. arXiv preprint arXiv:1803.09702.