[−][src]Function artha::neural_net::sigmoid_prime
pub fn sigmoid_prime<T>(arr: &Array2<T>) -> Array2<f64> where
T: Copy + Mul,
f64: From<T>,
Loops through the Array and calculates sigmoid prime of each value.
Note: Since taking the sigmoid of each value in the matrix requires it to be converted to floating point and From f64 trait is not implemented for i32/64 nor for u32/64/size, this function returns f64 Array