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.
The link function.
The gradient of the link function.
The inverse of the link function. Often called the ‘mean’ function.
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))