mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-09 16:08:31 +01:00
fix sigma being reset every round
This commit is contained in:
@@ -68,10 +68,10 @@ def evaluateRound(r):
|
|||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
def newRating(mu=None, sigma=None):
|
def newRating(mu=None, sigma=None):
|
||||||
if mu:
|
if mu and sigma:
|
||||||
return Rating(mu=mu, sigma=env.sigma)
|
|
||||||
elif mu and sigma:
|
|
||||||
return Rating(mu=mu, sigma=sigma)
|
return Rating(mu=mu, sigma=sigma)
|
||||||
|
elif mu:
|
||||||
|
return Rating(mu=mu, sigma=env.sigma)
|
||||||
else:
|
else:
|
||||||
return env.create_rating()
|
return env.create_rating()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user