mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-08-03 14:16:54 +02:00
More robust algorithm
This commit is contained in:
@@ -110,6 +110,6 @@ class TestWEIAlgorithm(TestCase):
|
||||
max_score = buses[0][1][0]
|
||||
penalty += (max_score - score) ** 2
|
||||
|
||||
self.assertLessEqual(max_score - score, 1) # Always less than 25 % of tolerance
|
||||
self.assertLessEqual(max_score - score, 1)
|
||||
|
||||
self.assertLessEqual(penalty / 100, 25) # Tolerance of 5 %
|
||||
|
Reference in New Issue
Block a user