sid-du commited on
Commit
ea5f6e2
1 Parent(s): dd33a2e

Handle out-of-bound loss values from now-fixed code bugs.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -235,8 +235,8 @@ def get_losses_over_time(wandb_runs: List) -> pd.DataFrame:
235
  best_loss = math.inf
236
  for _, uid_data in all_uid_data.items():
237
  loss = uid_data.get("average_loss", math.inf)
238
- # Filter out the numbers from the exploit.
239
- if loss < best_loss and (loss > 2.5 or timestamp > datetime.datetime(2024,2,8)):
240
  best_loss = uid_data["average_loss"]
241
  if best_loss != math.inf:
242
  timestamps.append(timestamp)
 
235
  best_loss = math.inf
236
  for _, uid_data in all_uid_data.items():
237
  loss = uid_data.get("average_loss", math.inf)
238
+ # Filter out the numbers from the exploit and when validators lost the best model.
239
+ if loss < best_loss and (loss > 2.5 or timestamp > datetime.datetime(2024,2,12)) and (loss < 5 or timestamp > datetime.datetime(2024,3,27)):
240
  best_loss = uid_data["average_loss"]
241
  if best_loss != math.inf:
242
  timestamps.append(timestamp)