powered by
A function that calculates the loss/cost
get.loss(y, pred, type)
The loss of the input vectors.
The response vector.
The predicted values for the response.
A string indicating the type of regression model (linear or binomial).