Skip to content

Commit

Permalink
Merge pull request #299 from mlr-org/glmnet-doc
Browse files Browse the repository at this point in the history
better comments for glmnet
  • Loading branch information
sebffischer authored Aug 12, 2024
2 parents d7c4f17 + 4583d98 commit 8d7cf52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/helpers_glmnet.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ glmnet_selected_features = function(self, lambda = NULL) {


glmnet_invoke = function(data, target, pv, cv = FALSE) {
# glmnet for some reasons sets these parameters globally, therefore
# we reset them afterwards
saved_ctrl = glmnet::glmnet.control()
on.exit(invoke(glmnet::glmnet.control, .args = saved_ctrl))
glmnet::glmnet.control(factory = TRUE)
Expand Down

0 comments on commit 8d7cf52

Please sign in to comment.