Skip to content

Commit ee48499

Browse files
committed
add: test cases now cover subsampling
1 parent a489b6c commit ee48499

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/core_tests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ def test_eer(self):
395395

396396
modAL.expected_error.expected_log_loss_reduction(learner, X_pool)
397397
modAL.expected_error.expected_error_reduction(learner, X_pool)
398+
modAL.expected_error.expected_log_loss_reduction(learner, X_pool, p_subsample=0.1)
399+
modAL.expected_error.expected_error_reduction(learner, X_pool, p_subsample=0.1)
400+
modAL.expected_error.expected_log_loss_reduction(learner, X_pool)
401+
modAL.expected_error.expected_error_reduction(learner, X_pool)
402+
self.assertRaises(AssertionError, modAL.expected_error.expected_error_reduction,
403+
learner, X_pool, p_subsample=1.5)
404+
self.assertRaises(AssertionError, modAL.expected_error.expected_log_loss_reduction,
405+
learner, X_pool, p_subsample=1.5)
398406

399407

400408
class TestUncertainties(unittest.TestCase):

0 commit comments

Comments
 (0)