glmnetGridTable {bestglm} | R Documentation |
Four panels.
glmnetGridTable(XyList, alpha = 0, nfolds=10, family = "gaussian")
XyList |
input |
alpha |
elastic net parameter |
nfolds |
Number of folds, K, in regularized K-fold CV, must be >3 and <=10. |
family |
distribution |
tba
plot produced by side-effect. Table.
Set random seed beforehand if you want reproducibility.
A. I. McLeod
trainTestPartition
,
cv.glmnet
,
glmnet
,
predict.glmnet
set.seed(7733551)
out <- trainTestPartition(mcdonald)
round(glmnetGridTable(out),4)