View source: R/computeRobustLoss.R
| computeRobustLoss | R Documentation |
Scores validation residuals with the requested loss (mse, trimmed, or huber). Extracted
from computeCVError so the same loss formulas can be reused by the outer
cross-validation loop in cv.srlars.
computeRobustLoss(r_val, r_train, cv_loss)
r_val |
Numeric vector of validation residuals. |
r_train |
Numeric vector of training residuals, used only to set the scale for the
Huber loss. Ignored for |
cv_loss |
Character. Loss function: "huber", "trimmed", or "mse". |
Numeric. The scalar loss value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.