Activation

Trait Activation 

Source
pub trait Activation: ActivationClone {
    // Required methods
    fn function(&self, x: f32) -> f32;
    fn derivative(&self, x: f32) -> f32;
}

Required Methods§

Source

fn function(&self, x: f32) -> f32

Source

fn derivative(&self, x: f32) -> f32

Trait Implementations§

Source§

impl Clone for Box<dyn Activation>

Source§

fn clone(&self) -> Box<dyn Activation>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§