Residual hyperbolic-tangent nonlinearity.
The transform is source - tanh(alpha * source).
- Parameters:
- alphafloat, default=1.0
Tanh scale.
-
denoise(source: ndarray) → ndarray[source]
Apply the robust hyperbolic-tangent nonlinearity.
- Parameters:
- sourcendarray, shape (n_times,) or (n_times, n_epochs)
Source time series.
- Returns:
- denoisedndarray, same shape as
source source - tanh(alpha * source).