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