Module utils

Source
Expand description

Main library module.

Functions§

sigmoid
Utility functions for the LSTM library. Sigmoid activation function: σ(x) = 1 / (1 + e^(-x))
tanh
Hyperbolic tangent activation: tanh(x) = (e^x - e^(-x)) / (e^x + e^(-x))