pub struct BaseLogisticRegressor { /* private fields */ }
Expand description

The Base Logistic Regression model.

This struct cannot be instantianated and is used internally only.

Trait Implementations

Formats the value using the given formatter. Read more

Computing the gradient of the underlying Logistic Regression model.

The gradient is given by

XT(h(Xb) - y) / m

where h is the sigmoid function and b the underlying model parameters.

The input data type to the model.
The target data type to the model.
Compute the gradient for the model.

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.