I am using glmnet
to train the logistic regression model and then try to obtain the coefficients with the specific lambda
. I used the simple example here:
load("BinomialExample.RData")
fit = glmnet(x, y, family = "binomial")
coef(fit, s = c(0.05,0.01))
I have checked the values of fit$lambda
, however, I could not find the specific values of 0.05 or 0.01 in fit$lambda
. So how could coef
return the coefficients with a lambda
not in the fit$lambda
vector.