Computes the value of the gradient function
Computes the value of the loss function
Computes the binary prediction based on a dot prodcut
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
Implementation of the squared loss function.