Spaces:
Paused
Paused
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -24,7 +24,7 @@ def update_model_stats(model1_name, model2_name, winner, turn, anony, language):
|
|
| 24 |
"tstamp": tstamp
|
| 25 |
})
|
| 26 |
|
| 27 |
-
def calculate_elo(winner_elo, loser_elo, k=
|
| 28 |
"""
|
| 29 |
winner_elo: Elo score of the winner before the game
|
| 30 |
loser_elo: Elo score of the loser before the game
|
|
|
|
| 24 |
"tstamp": tstamp
|
| 25 |
})
|
| 26 |
|
| 27 |
+
def calculate_elo(winner_elo, loser_elo, k=28, outcome=1):
|
| 28 |
"""
|
| 29 |
winner_elo: Elo score of the winner before the game
|
| 30 |
loser_elo: Elo score of the loser before the game
|