pub struct GenLinearModel<C: Criterion> { /* private fields */ }
Expand description

The Generalized Linear Model

The model is generic over a Criterion which specifies the distribution family and the link function.

Implementations

Constructs a new Generalized Linear Model.

Takes a Criterion which fully specifies the family and the link function used by the GLM.

use rusty_machine::learning::glm::GenLinearModel;
use rusty_machine::learning::glm::Bernoulli;

let glm = GenLinearModel::new(Bernoulli);

Trait Implementations

Formats the value using the given formatter. Read more

Supervised model trait for the GLM.

Predictions are made from the model by computing g^-1(Xb).

The model is trained using Iteratively Re-weighted Least Squares.

Predict output from inputs.

Train the model using inputs and targets.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.