Skip to content

Commit 10b180e

Browse files
committed
fix exception message
1 parent e1cebce commit 10b180e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doubleml/double_ml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def evaluate_learners(self, learners=None, metric=mean_squared_error):
10921092

10931093
# check metric
10941094
if not callable(metric):
1095-
raise TypeError('metric should be either a callable. '
1095+
raise TypeError('metric should be a callable. '
10961096
'%r was passed.' % metric)
10971097

10981098
if all(learner in self.params_names for learner in learners):

doubleml/tests/test_doubleml_exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ def test_double_ml_exception_evaluate_learner():
808808

809809
dml_irm_obj.fit()
810810

811-
msg = "metric should be either a callable. 'mse' was passed."
811+
msg = "metric should be a callable. 'mse' was passed."
812812
with pytest.raises(TypeError, match=msg):
813813
dml_irm_obj.evaluate_learners(metric="mse")
814814

0 commit comments

Comments
 (0)