Skip to content

Commit 4b9d96b

Browse files
committed
refactor: add min_samples_split and max_depth parameters to DecisionTree models in tuning test
1 parent 81799fd commit 4b9d96b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doubleml/irm/tests/test_cvar_tune_ml_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def test_doubleml_cvar_optuna_tune(sampler_name, optuna_sampler):
1818
np.random.seed(3145)
1919
dml_data = make_irm_data(n_obs=500, dim_x=5)
2020

21-
ml_g = DecisionTreeRegressor(random_state=321)
22-
ml_m = DecisionTreeClassifier(random_state=654)
21+
ml_g = DecisionTreeRegressor(random_state=321, max_depth=None, min_samples_split=2)
22+
ml_m = DecisionTreeClassifier(random_state=654, max_depth=None, min_samples_split=2)
2323

2424
dml_cvar = dml.DoubleMLCVAR(dml_data, ml_g=ml_g, ml_m=ml_m, n_folds=2)
2525
dml_cvar.fit()

0 commit comments

Comments
 (0)