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

fn func(x: f64) -> f64

The link function.

fn func_grad(x: f64) -> f64

The gradient of the link function.

fn func_inv(x: f64) -> f64

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

Implementors