pub struct Ftrl<F: Float> { /* private fields */ }

Implementations

View the fitted parameters and make predictions with a fitted follow the regularized leader -proximal, model

Get Z values

Get N values

Get the alpha parameter

Get the beta parameter

Get the L1 regularization value

Get the L2 regularization value

Calculate weights for model prediction

Update method of the model hyperparameters in case of async mode. To use this method, we must store probabilities and features for the row, and update once the result (bool) is observed.

Create a default parameter set for construction of Follow The Regularized Leader - proximal model The description can be found here

It requires data preprocessing done in the separate step. Create default hyperparameters. Random number generator will default to rand_xoshiro::Xoshiro256Plus

Create default hyperparameters with custom random number generator

Create a new model with given parameters, number of features and custom random number generator

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 the parameters 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.