rotta_rs 0.0.6

a Deep Learning library with rust language
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::rotta_rs_module::{ exp, Tensor };

#[allow(dead_code)]
pub fn sigmoid(x: &Tensor) -> Tensor {
    // 1/(1+e^-x)
    let x = 1.0 + &exp(&(-1.0 * x));
    let sigmoid = 1.0 / &x;

    sigmoid
}