- braindecode.augmentation.functional.mixup(X, y, lam, idx_perm)#
Mixes two channels of EEG data.
X (torch.Tensor) – EEG data in form
batch_size, n_channels, n_times
y (torch.Tensor) – Target of length
lam (torch.Tensor) – 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.
- Return type