
Plot cross-validation results for a regularized model
Source:R/supervised-regularization.R
tl_plot_regularization_cv.RdShows the cross-validation error as a function of lambda for ridge, lasso, or elastic net models fitted with cv.glmnet.
Value
A ggplot object.
Examples
# \donttest{
model <- tl_model(mtcars, mpg ~ ., method = "ridge")
tl_plot_regularization_cv(model)
# }