Struct rusty_machine::learning::toolkit::activ_fn::Sigmoid [] [src]

pub struct Sigmoid;

Sigmoid activation function.

Trait Implementations

impl Debug for Sigmoid
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Sigmoid
[src]

impl Clone for Sigmoid
[src]

fn clone(&self) -> Sigmoid

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl ActivationFunc for Sigmoid
[src]

fn func(x: f64) -> f64

Sigmoid function.

Returns 1 / ( 1 + e-t).

fn func_grad(x: f64) -> f64

Gradient of sigmoid function.

Evaluates to (1 - e-t) / (1 + e-t)2

fn func_inv(x: f64) -> f64

The inverse of the activation function.