- braindecode.augmentation.functional.mixup(X, y, lam, idx_perm)¶
Mixes two channels of EEG data.
EEG data in form
batch_size, n_channels, n_times
Target of length
Values between 0 and 1 setting the linear interpolation between examples.
- idx_perm: torch.Tensor
Permuted indices of example that are mixed into original examples.
Xis augmented and
yis a tuple of length 3 containing the labels of the two mixed channels and the mixing coefficient.
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