get.loss | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.