-
Notifications
You must be signed in to change notification settings - Fork 1
/
wandb_setup.py
26 lines (23 loc) · 1.38 KB
/
wandb_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import wandb
def wandb_setup(opt, config_dict):
log_config = {"opt": vars(opt), "config_file": config_dict}
wandb_run = wandb.init(
settings=wandb.Settings(start_method="fork"),
project="ProofConcept",
entity="marl-dr",
config=log_config,
name="%s_TCLs-%d_envseed-%d_netseed-%d" % (
opt.exp, opt.nb_agents, opt.env_seed, opt.net_seed),
)
wandb_run.define_metric(name='Mean train return', step_metric='Training steps')
wandb_run.define_metric(name='Mean temperature offset', step_metric='Training steps')
wandb_run.define_metric(name='Mean temperature error', step_metric='Training steps')
wandb_run.define_metric(name='Mean signal offset', step_metric='Training steps')
wandb_run.define_metric(name='Mean signal error', step_metric='Training steps')
wandb_run.define_metric(name='Mean next signal error', step_metric='Training steps')
wandb_run.define_metric(name='Mean next signal offset', step_metric='Training steps')
wandb_run.define_metric(name='Mean test return', step_metric='Training steps')
wandb_run.define_metric(name='Mean test return', step_metric='Training steps')
wandb_run.define_metric(name='Test mean temperature error', step_metric='Training steps')
wandb_run.define_metric(name='Test mean signal error', step_metric='Training steps')
return wandb_run