Skip to content

Commit 6ba4c30

Browse files
committed
formatting
1 parent ff5455d commit 6ba4c30

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

doubleml/did/tests/test_did_binary_tune_ml_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_doubleml_did_binary_optuna_tune(sampler_name, optuna_sampler, score):
3939

4040
g_value, t_value_pre, t_value_eval = _select_binary_periods(panel_data)
4141

42-
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
42+
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
4343
ml_m = DecisionTreeClassifier(random_state=654)
4444
dml_did_binary = DoubleMLDIDBinary(
4545
obj_dml_data=panel_data,

doubleml/did/tests/test_did_cs_binary_tune_ml_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_doubleml_did_cs_binary_optuna_tune(sampler_name, optuna_sampler, score)
3737
print(df_panel.head())
3838
g_value, t_value_pre, t_value_eval = _select_binary_periods(panel_data)
3939

40-
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
40+
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
4141
ml_m = DecisionTreeClassifier(random_state=654)
4242

4343
dml_did_cs_binary = DoubleMLDIDCSBinary(
@@ -68,4 +68,4 @@ def test_doubleml_did_cs_binary_optuna_tune(sampler_name, optuna_sampler, score)
6868
_assert_tree_params(tuned_params)
6969

7070
# ensure tuning improved RMSE or LogLoss
71-
assert tuned_score[learner_name] < untuned_score[learner_name]
71+
assert tuned_score[learner_name] < untuned_score[learner_name]

doubleml/did/tests/test_did_cs_tune_ml_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_doubleml_did_cs_optuna_tune(sampler_name, optuna_sampler, score):
2525
return_type="DoubleMLDIDData",
2626
)
2727

28-
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
28+
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
2929
if score == "observational":
3030
ml_m = DecisionTreeClassifier(random_state=654)
3131
dml_did_cs = dml.DoubleMLDIDCS(dml_data, ml_g, ml_m, score=score, n_folds=5)

doubleml/did/tests/test_did_tune_ml_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_doubleml_did_optuna_tune(sampler_name, optuna_sampler, score):
2222
np.random.seed(3150)
2323
dml_data = make_did_SZ2020(n_obs=500, dgp_type=4, return_type="DoubleMLDIDData")
2424

25-
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
25+
ml_g = DecisionTreeRegressor(random_state=321, max_depth=1) # underfit
2626
if score == "observational":
2727
ml_m = DecisionTreeClassifier(random_state=654)
2828
dml_did = dml.DoubleMLDID(dml_data, ml_g, ml_m, score=score, n_folds=5)

0 commit comments

Comments
 (0)