View source: R/computeCVError.R
| computeCVError | R Documentation |
Evaluates the cross-validation error of a given active set using a hyper-fast Cholesky solver (with optional Huber IRLS robust fitting) and robust validation loss.
computeCVError(cv_data, active_set, cv_fit, cv_loss)
cv_data |
List of fold data (x_train, y_train, x_val, y_val). |
active_set |
Integer vector of active predictors. |
cv_fit |
Character. Fitting method: "ls" or "huber" (IRLS). |
cv_loss |
Character. Loss function: "huber", "trimmed", or "mse". |
Numeric. The averaged cross-validation error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.