Skip to content

Commit

Permalink
use glmnet formals even with cv_select = TRUE
Browse files Browse the repository at this point in the history
  • Loading branch information
nhejazi committed Apr 8, 2021
1 parent 45ff7d7 commit 54a695a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/Lrnr_hal9001.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ Lrnr_hal9001 <- R6Class(

# pass in formals of glmnet versus cv.glmnet based on cv_select
if (args$cv_select) {
glmnet_other_valid <- names(formals(glmnet::cv.glmnet))
glmnet_other_valid <- union(
names(formals(glmnet::cv.glmnet)),
names(formals(glmnet::glmnet))
)
} else {
glmnet_other_valid <- names(formals(glmnet::glmnet))
}
Expand Down

0 comments on commit 54a695a

Please sign in to comment.