Skip to content

Commit 30ea320

Browse files
Ibinarriaga8vmoens
authored andcommitted
[Refactor] Update logging backend to use wandb
1 parent 3792dc6 commit 30ea320

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

sota-implementations/cql/cql_offline.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ def update(data, policy_eval_start, iteration):
191191
metrics_to_log.update(timeit.todict(prefix="time"))
192192
metrics_to_log["time/speed"] = pbar.format_dict["rate"]
193193

194-
if i % evaluation_interval == 0:
195-
print(
196-
f"Step {i}: loss={loss.item():.4f}, eval_reward={eval_reward:.4f}"
197-
)
198194
log_metrics(logger, metrics_to_log, i)
199195

200196
pbar.close()

sota-implementations/cql/offline_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
# logger
1111
logger:
12-
backend: csv
12+
backend: wandb
1313
project_name: torchrl_example_cql
1414
group_name: null
1515
exp_name: cql_${replay_buffer.dataset}

0 commit comments

Comments
 (0)