braindecode.augmentation.functional.channels_permute#

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

Permute EEG channels according to fixed permutation matrix.

Suggested e.g. in [1]

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

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

  • permutation (list) – 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.