@@ -10,14 +10,14 @@ if (on_cran) {
1010 learner = " rpart" ,
1111 dml_procedure = " dml2" ,
1212 score = " LATE" ,
13- trimming_threshold = c(0.0001 ),
13+ trimming_threshold = c(1e-5 ),
1414 stringsAsFactors = FALSE )
1515} else {
1616 test_cases = expand.grid(
1717 learner = " cv_glmnet" ,
1818 dml_procedure = c(" dml1" , " dml2" ),
1919 score = " LATE" ,
20- trimming_threshold = c(0.0001 ),
20+ trimming_threshold = c(1e-5 ),
2121 stringsAsFactors = FALSE )
2222}
2323
@@ -35,7 +35,8 @@ patrick::with_parameters_test_that("Unit tests for IIVM:",
3535 ml_g = learner_pars $ ml_g $ clone(),
3636 ml_m = learner_pars $ ml_m $ clone(),
3737 ml_r = learner_pars $ ml_r $ clone(),
38- dml_procedure = dml_procedure , score = score )
38+ dml_procedure = dml_procedure , score = score ,
39+ trimming_threshold = trimming_threshold )
3940 theta = iivm_hat $ coef
4041 se = iivm_hat $ se
4142
@@ -45,7 +46,8 @@ patrick::with_parameters_test_that("Unit tests for IIVM:",
4546 n_folds = 5 , smpls = iivm_hat $ smpls ,
4647 all_preds = iivm_hat $ all_preds ,
4748 score = score ,
48- bootstrap = " normal" , n_rep_boot = n_rep_boot )$ boot_coef
49+ bootstrap = " normal" , n_rep_boot = n_rep_boot ,
50+ trimming_threshold = trimming_threshold )$ boot_coef
4951
5052 set.seed(3141 )
5153 double_mliivm_obj = DoubleMLIIVM $ new(
0 commit comments