pub fn sigmoid<T>(args: T) -> Twhere T: Float,
the sigmoid activation function: $f(x) = \frac{1}{1 + e^{-x}}$