[][src]Trait scholar::Activation

pub trait Activation {
    fn activate(x: f64) -> f64;
fn derivative(x: f64) -> f64; }

An activation for a network, including a function and a 'derivative' function.

Required methods

fn activate(x: f64) -> f64

The activation function.

fn derivative(x: f64) -> f64

The 'derivative' of the activaton function.

Note that this assumes that the activation function has already been applied to its input, as this is always the case when used in the context of neural networks.

Loading content...

Implementors

impl Activation for Sigmoid[src]

Loading content...