Trait rusty_machine::learning::toolkit::activ_fn::ActivationFunc [] [src]

pub trait ActivationFunc {
    fn func(x: f64) -> f64;
    fn func_grad(x: f64) -> f64;
    fn func_inv(x: f64) -> f64;
}

Trait for activation functions in models.

Required Methods

The activation function.

The gradient of the activation function.

The inverse of the activation function.

Implementors