Exemplo n.º 1
0
 def test_different_more_diagnostic_than_neutral(self):
     """Test that diagnosticity() is higher for hypothesis with different consensus."""
     different = diagnosticity([[Eval.consistent], [Eval.inconsistent]])
     same = diagnosticity([[Eval.neutral], [Eval.neutral]])
     self.assertGreater(different, same)
Exemplo n.º 2
0
 def test_no_votes_has_zero_diagnosticity(self):
     """Test that diagnosticity() returns 0.0 when there are no votes."""
     self.assertEqual(diagnosticity([[], []]), 0.0)