powered by
glmnet::cv.glmnet
data.frame
Convert glmnet::cv.glmnet to data.frame
# S3 method for cv.glmnet fortify(model, data = NULL, ...)
glmnet::cv.glmnet instance
original dataset, if needed
other arguments passed to methods
if (requireNamespace("survival", quietly = TRUE)) { fortify(glmnet::cv.glmnet(data.matrix(Orange[-3]), data.matrix(Orange[3]))) }
Run the code above in your browser using DataLab