Skip to content

Commit

Permalink
switch to non-glmnet learner for the unit test on cran; also change t…
Browse files Browse the repository at this point in the history
…he hyperparameter to prevent #136
MalteKurz committed Oct 26, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 246a32c commit 46f867b
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/helper-05-ml-learner.R
Original file line number Diff line number Diff line change
@@ -214,9 +214,9 @@ get_default_mlmethod_iivm = function(learner) {
mlmethod_r = paste0("classif.", learner))

params = list(
params_m = list(cp = 0.01, minsplit = 20),
params_g = list(cp = 0.01, minsplit = 20),
params_r = list(cp = 0.01, minsplit = 20))
params_m = list(cp = 0.02, minsplit = 20),
params_g = list(cp = 0.02, minsplit = 20),
params_r = list(cp = 0.02, minsplit = 20))

}
ml_g = mlr3::lrn(mlmethod$mlmethod_g)
1 change: 1 addition & 0 deletions tests/testthat/test-double_ml_iivm.R
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ patrick::with_parameters_test_that("Unit tests for IIVM:",
double_mliivm_obj$fit()
theta_obj = double_mliivm_obj$coef
se_obj = double_mliivm_obj$se
print(learner_pars)

# bootstrap
double_mliivm_obj$bootstrap(method = "normal", n_rep = n_rep_boot)

0 comments on commit 46f867b

Please sign in to comment.