We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8118c0 commit 376462dCopy full SHA for 376462d
tests/test_greedy_selector.py
@@ -49,6 +49,14 @@ def test_score_threshold_and_full(self):
49
"You cannot specify both `score_threshold` and `full=True`.",
50
)
51
52
+ def test_bad_score_threshold_type(self):
53
+ with self.assertRaises(ValueError) as cm:
54
+ _ = GreedyTester(score_threshold_type = "invalid").fit(self.X)
55
+ self.assertEqual(
56
+ str(cm.exception),
57
+ "invalid score_threshold_type, expected one of 'relative' or 'absolute'"
58
+ )
59
+
60
def test_bad_warm_start(self):
61
selector = GreedyTester()
62
with self.assertRaises(ValueError) as cm:
0 commit comments