powered by
"predict"(object, newx, s = c("lambda.lse", "lambda.min"), ...)
library(glmnet) x=matrix(rnorm(50*20),50,20) y=rbinom(50,1,0.5) cvfit=cv.LDCA(x,y,nfolds=5) predict(cvfit,x[1:10,],s="lambda.min")
Run the code above in your browser using DataLab