braindecode.augmentation.functional.mixup#
- braindecode.augmentation.functional.mixup(X, y, lam, idx_perm)[source]#
Mixes two channels of EEG data.
See [1] for details. Implementation based on [2].
- Parameters:
- Returns:
X,y. WhereXis augmented andyis a tuple of length 3 containing the labels of the two mixed channels and the mixing coefficient.- Return type:
References
[1]Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, David Lopez-Paz (2018). mixup: Beyond Empirical Risk Minimization. In 2018 International Conference on Learning Representations (ICLR) Online: https://arxiv.org/abs/1710.09412