Error: used coef.glmnet() or predict.glmnet() with exact=TRUE so must in addition supply original argument(s) x and y in order to safely rerun glmnet
exact=TRUE
意思很明确,就是要你提供原始的x和y数据呢,在exact = TRUE后面紧接着加上x = x, y = y即可
exact = TRUE
x = x, y = y
exact = TRUE, x = x, y = y
有帮助望采纳哟