Struct rusty_machine::learning::glm::Poisson [] [src]

pub struct Poisson;

The Poisson regression family.

Trait Implementations

impl Debug for Poisson
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Poisson
[src]

impl Clone for Poisson
[src]

fn clone(&self) -> Poisson

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Criterion for Poisson
[src]

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

Applies the link function to a vector.

Applies the inverse of the link function to a vector.

Computes the gradient of the link function.