Score risk as L + E + I, and route a worker on its item's L and its reviewers on its E + I #296

Merged
lilleman merged 24 commits from item-146 into main 2026-10-16 18:34:16 +02:00
Showing only changes of commit 79cce77762 - Show all commits
@@ -95,6 +95,7 @@ class Report(unittest.TestCase):
def test_ranks_ties_by_their_mean_rank(self):
self.assertAlmostEqual(rank_correlation([1, 1, 2, 2, 2], [1, 2, 3, 4, 5]), 0.866, places=3)
self.assertAlmostEqual(rank_correlation([1, 1, 2, 3], [1, 2, 3, 4]), 0.949, places=3)
self.assertAlmostEqual(rank_correlation([1, 2, 3, 4, 5], [1, 1, 2, 2, 2]), 0.866, places=3)
def test_gives_how_well_l_e_and_i_each_order_chunks_by_review_rounds_and_red_findings(self):
levels = [1, 1, 2, 2, 2, 3, 3, 3, 4, 4]