pub struct FittedLinearRegression<F> { /* private fields */ }
Expand description

A fitted linear regression model which can be used for making predictions.

Implementations

View the fitted parameters and make predictions with a fitted linear regresssion model.

Get the fitted parameters

Get the fitted intercept, 0. if no intercept was fitted

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Given an input matrix X, with shape (n_samples, n_features), predict returns the target variable according to linear model learned from the training data distribution.

Create targets that predict_inplace works with.

Serialize this value into the given Serde serializer. Read more

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.