Spaces:
Runtime error
Runtime error
robot-bengali-2
commited on
Commit
•
92e2a62
1
Parent(s):
1edb9c0
Show smooth plots by sampling points
Browse files
dashboard_utils/main_metrics.py
CHANGED
@@ -14,13 +14,13 @@ CACHE_TTL = 100
|
|
14 |
def get_main_metrics():
|
15 |
api = wandb.Api()
|
16 |
run = api.run(WANDB_RUN_URL)
|
17 |
-
history = run.
|
18 |
|
19 |
steps = []
|
20 |
losses = []
|
21 |
alive_peers = []
|
22 |
dates = []
|
23 |
-
for row in history:
|
24 |
steps.append(row["step"])
|
25 |
losses.append(row["loss"])
|
26 |
alive_peers.append(row["alive peers"])
|
|
|
14 |
def get_main_metrics():
|
15 |
api = wandb.Api()
|
16 |
run = api.run(WANDB_RUN_URL)
|
17 |
+
history = run.history(keys=["step", "loss", "alive peers", "_timestamp"])
|
18 |
|
19 |
steps = []
|
20 |
losses = []
|
21 |
alive_peers = []
|
22 |
dates = []
|
23 |
+
for _, row in history.iterrows():
|
24 |
steps.append(row["step"])
|
25 |
losses.append(row["loss"])
|
26 |
alive_peers.append(row["alive peers"])
|