View source: R/model-feature-selection.R
featsel_glmnet | R Documentation |
This is a wrapper for 'glmnet::cv.glmnet' and return A 'glm' object using the selected variables from 'glmnet::cv.glmnet'.
featsel_glmnet(
model,
S = "lambda.1se",
plot = TRUE,
seed = 123,
trace.it = 1,
type.measue = "auc",
...
)
model |
model |
S |
From https://glmnet.stanford.edu/articles/glmnet.html#quick-start: 'lambda.min' is the value of λ that gives minimum mean cross-validated error, while 'lambda.1se' is the value of λ that gives the most regularized model such that the cross-validated error is within one standard error of the minimum. |
plot |
plot |
seed |
seed |
trace.it |
trace.it p |
type.measue |
type.measue |
... |
Additional argumentos for glmnet::cv.glmnet |
A ‘glm' object using the selected variables from 'glmnet::cv.glmnet'.#’
data("credit_woe")
m <- glm(bad ~ ., family = binomial, data = credit_woe)
featsel_glmnet(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.