Struct Identity
juggernaut::activation
pub struct Identity;
impl Activation for Identity
fn new() -> Identity
fn calc(&self, x: f64) -> f64
Calculates the Identity of input x
x
fn derivative(&self, x: f64) -> f64
Calculates the Derivative Identity of input x