@@ -715,10 +715,6 @@ def test_doubleml_exception_learner():
715715 with pytest .raises (ValueError , match = msg ):
716716 _ = DoubleMLPLR (dml_data , Lasso (), LogisticRegression ())
717717
718- msg = 'ml_g was renamed to ml_l'
719- with pytest .warns (DeprecationWarning , match = msg ):
720- _ = DoubleMLPLR (dml_data , ml_g = Lasso (), ml_m = ml_m ) # pylint: disable=no-value-for-parameter
721-
722718 msg = r"For score = 'IV-type', learners ml_l and ml_g should be specified. Set ml_g = clone\(ml_l\)."
723719 with pytest .warns (UserWarning , match = msg ):
724720 _ = DoubleMLPLR (dml_data , ml_l = Lasso (), ml_m = ml_m , score = 'IV-type' )
@@ -727,10 +723,6 @@ def test_doubleml_exception_learner():
727723 with pytest .warns (UserWarning , match = msg ):
728724 _ = DoubleMLPLR (dml_data , ml_l = Lasso (), ml_m = Lasso (), ml_g = Lasso (), score = 'partialling out' )
729725
730- msg = 'ml_g was renamed to ml_l'
731- with pytest .warns (DeprecationWarning , match = msg ):
732- _ = DoubleMLPLIV (dml_data_pliv , ml_g = Lasso (), ml_m = ml_m , ml_r = ml_r ) # pylint: disable=no-value-for-parameter
733-
734726 msg = "For score = 'IV-type', learners ml_l, ml_m, ml_r and ml_g need to be specified."
735727 with pytest .raises (ValueError , match = msg ):
736728 _ = DoubleMLPLIV (dml_data_pliv , ml_l = ml_l , ml_m = ml_m , ml_r = ml_r ,
0 commit comments