powered by
cv.glmnet
cv.glmnet(data, formula, ...)# S3 method for cv.glmnet predict(object, data, ...)
# S3 method for cv.glmnet predict(object, data, ...)
formula
fit <- cv.glmnet(mtcars, hp ~ .) predict(fit, mtcars, s = "lambda.min")
Run the code above in your browser using DataLab