getLoss | R Documentation |
Calculate the loss given predicted and observed values
getLoss(preds, obs, loss)
preds |
Matrix of predicted values |
obs |
vector of observed values |
loss |
a character vector indicating the loss type, see ?cv.pengls |
the evaluated loss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.