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

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

The Identity link function.

g(u) = u

The log link function.

g(u) = ln(u)

The Logit link function.

g(u) = ln(x / (1 - x))