braindecode.augmentation.functional.amplitude_scale#
- braindecode.augmentation.functional.amplitude_scale(X, y, scale, random_state=None)[source]#
Rescale amplitude of each channel based on a random sampled scaling value.
Part of the augmentations proposed in [1]
- Parameters:
- Return type:
- Returns:
torch.Tensor – Transformed inputs.
torch.Tensor – Transformed labels.
References
[1]Mohsenvand, M.N., Izadi, M.R. & Maes, P.. (2020). Contrastive Representation Learning for Electroencephalogram Classification. Proceedings of the Machine Learning for Health NeurIPS Workshop, in Proceedings of Machine Learning Research 136:238-253