Struct rusty_machine::learning::logistic_reg::BaseLogisticRegressor [] [src]

pub struct BaseLogisticRegressor { /* fields omitted */ }

The Base Logistic Regression model.

This struct cannot be instantianated and is used internally only.

Trait Implementations

impl Debug for BaseLogisticRegressor
[src]

Formats the value using the given formatter.

impl Optimizable for BaseLogisticRegressor
[src]

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.