Trait rusty_machine::learning::glm::LinkFunc [] [src]

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

Link functions.

Used within Generalized Linear Regression models.

Required Methods

The link function.

The gradient of the link function.

The inverse of the link function. Often called the 'mean' function.

Implementors