Skip to content

Commit 4343f3e

Browse files
committed
Fix: Update test to use Lasso as invalid learner for ml_M in DoubleMLLPLR
1 parent ce18553 commit 4343f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doubleml/plm/tests/test_lplr_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def test_lplr_exception_learner():
241241
def test_lplr_exception_and_warning_learner():
242242
# invalid ml_M (must be a classifier with predict_proba)
243243
with pytest.raises(TypeError):
244-
_ = DoubleMLLPLR(dml_data, _DummyNoClassifier(), ml_t, ml_m)
244+
_ = DoubleMLLPLR(dml_data, Lasso(), ml_t, ml_m)
245245
msg = "Invalid learner provided for ml_M: " + r"Lasso\(\) has no method .predict_proba\(\)."
246246
with pytest.raises(TypeError, match=msg):
247247
_ = DoubleMLLPLR(dml_data, Lasso(), ml_t, ml_m)

0 commit comments

Comments
 (0)