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

pub struct Linear;

Linear activation function.

Trait Implementations

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.