请问用cv.glmnet时为什么出现“Error in rep(1, N) : 'times'参数不对”的错误提示?
多谢!
“
- x = matrix(rnorm(100 * 20), 100, 20)
- g2 = sample(1:2, 100, replace = TRUE)
- fit2 = glmnet(x, g2, family = "binomial",alpha = 1)
- fit2c = cv.glmnet(fit2, nfolds = 10)
- #当提交fit2c时出现错误提示“Error in rep(1, N) : 'times'参数不对”