TheXeos commited on
Commit
a0dbe55
1 Parent(s): 48744f2

Pass Model objects to elo compute

Browse files
Files changed (1) hide show
  1. background_task.py +1 -1
background_task.py CHANGED
@@ -91,7 +91,7 @@ class Matchmaking:
91
  model2 = self.find_model(model2[0], model2[1])
92
  result = row["result"]
93
  if model1 is not None or model2 is not None:
94
- self.compute_elo(row["model1"], row["model2"], row["result"])
95
  self.matches["model1"].append(model1.name)
96
  self.matches["model2"].append(model2.name)
97
  self.matches["result"].append(result)
 
91
  model2 = self.find_model(model2[0], model2[1])
92
  result = row["result"]
93
  if model1 is not None or model2 is not None:
94
+ self.compute_elo(model1, model2, row["result"])
95
  self.matches["model1"].append(model1.name)
96
  self.matches["model2"].append(model2.name)
97
  self.matches["result"].append(result)