selfeeg.utils
This module simply gathers functions and classes for various purposes. For example, you can find a torch implementation of the Scipy’s pchip interpolation function (used for resampling) or pytorch EEG scaler with a soft clipping option. Both the cited functions are compatible with GPU tensors.
Classes
class adaptation of the |
|
zscore operator callable objects. |
Functions
checks that two nn.Modules are equal. |
|
counts the number of trainable parameters of a Pytorch's nn.Module. |
|
creates a simulated EEG dataset for normal abnormal binary classification. |
|
find the subarray whose values sum is closer to a target. |
|
soft version of the range scaler. |
|
performs the pchip interpolation on the last dimension of the input tensor. |
|
zscore operator for torch tensors. |