Computes the value of the gradient function
Computes the value of the gradient function
the dot product of the linear model and the instance
the gradient value
Computes the value of the loss function
Computes the value of the loss function
the dot product of the linear model and the instance
the loss value
Computes the binary prediction based on a dot product
Computes the binary prediction based on a dot product
the dot product of the linear model and the instance
the predicted binary class
Computes the probability of a binary prediction based on a dot product
Computes the probability of a binary prediction based on a dot product
the dot product of the linear model and the instance
the predicted probability
A Loss trait defines the operation needed to compute the loss function, the prediction function, and the gradient for use in a LinearModel.