mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-06 06:51:34 +01:00
add safety cutoff to confidence
This commit is contained in:
@@ -16,6 +16,9 @@ def evaluateRound(r):
|
|||||||
if r.pt_difference() >= 2.1 or r.pt_difference() == 0:
|
if r.pt_difference() >= 2.1 or r.pt_difference() == 0:
|
||||||
raise ValueError("Teams too imbalanced: {} (zero=inifinity)".format(r.pt_difference()))
|
raise ValueError("Teams too imbalanced: {} (zero=inifinity)".format(r.pt_difference()))
|
||||||
|
|
||||||
|
if r.confidence > 0.95:
|
||||||
|
raise ValueError("Confidence is too high, skipping round.")
|
||||||
|
|
||||||
weights = r.normalized_playtimes()
|
weights = r.normalized_playtimes()
|
||||||
|
|
||||||
# trueskill need groups = [ { key : rating, ... } , { key : rating, ... } ]
|
# trueskill need groups = [ { key : rating, ... } , { key : rating, ... } ]
|
||||||
|
|||||||
Reference in New Issue
Block a user