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

pub struct Sigmoid;

Sigmoid activation function.

Trait Implementations

impl Clone for Sigmoid
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Sigmoid
[src]

impl Debug for Sigmoid
[src]

Formats the value using the given formatter.

impl ActivationFunc for Sigmoid
[src]

Sigmoid function.

Returns 1 / ( 1 + e-t).

Gradient of sigmoid function.

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

The inverse of the activation function.