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

pub struct Linear;

Linear activation function.

Trait Implementations

impl Debug for Linear
[src]

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

Formats the value using the given formatter.

impl Copy for Linear
[src]

impl Clone for Linear
[src]

fn clone(&self) -> Linear

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 Linear
[src]

fn func(x: f64) -> f64

The activation function.

fn func_grad(_: f64) -> f64

The gradient of the activation function.

fn func_inv(x: f64) -> f64

The inverse of the activation function.