Skip to content

Commit 0073581

Browse files
authored
update threshhold to 97% after measuring 2x 100 runs and getting 3 failures. (#50)
1 parent fbf99aa commit 0073581

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python 3.13.2
2+
uv 0.6.6

examples/team_recommender/tests/example_9_threshold/test_measurement_is_within_threshold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def test_metrics_within_range():
163163
)
164164
results.append(test_runner.run_once(run))
165165

166-
failure_threshold = 0.9
167-
assert generations <= 1 or is_within_expected(
166+
failure_threshold = 0.97
167+
assert is_within_expected(
168168
failure_threshold, sum(not result for result in results), generations
169169
), f"Expected {failure_threshold} to be within the confidence interval of the success rate"
170170

0 commit comments

Comments
 (0)