Computes the value of the perceptron update function
Computes the value of the perceptron update function
the dot product of the linear model and the instance
the update 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 prodcut
Computes the binary prediction based on a dot prodcut
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
Implementation of the perceptron loss function. Essentially, the perceptron is using the squared loss function except for the "gradient".