Struct rusty_machine::learning::glm::Binomial
[−]
[src]
pub struct Binomial { /* fields omitted */ }
The Binomial regression family.
Trait Implementations
impl Debug for Binomial
[src]
impl Criterion for Binomial
[src]
type Link = Logit
The link function of the GLM Criterion.
fn model_variance(&self, mu: f64) -> f64
The variance of the regression family.
fn initialize_mu(&self, y: &[f64]) -> Vec<f64>
Initializes the mean value. Read more
fn compute_working_weight(&self, mu: &[f64]) -> Vec<f64>
Computes the working weights that make up the diagonal of the W
matrix used in the iterative reweighted least squares algorithm. Read more
fn compute_y_bar(&self, y: &[f64], mu: &[f64]) -> Vec<f64>
Computes the adjustment to the fitted values used during fitting. Read more
fn apply_link_func(&self, vec: Vector<f64>) -> Vector<f64>
Applies the link function to a vector.
fn apply_link_inv(&self, vec: Vector<f64>) -> Vector<f64>
Applies the inverse of the link function to a vector.
fn link_grad(&self, mu: f64) -> f64
Computes the gradient of the link function.