MCPcopy Create free account
hub / github.com/OpenRL-Lab/Wandb_Tutorial / test_tables

Function test_tables

basic/test_tables.py:26–50  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

24 return all_args
25
26def test_tables(args):
27 all_args = parse(args)
28
29 random.seed(all_args.seed)
30
31 run_dir = Path("../results") / all_args.project_name / all_args.experiment_name
32 if not run_dir.exists():
33 os.makedirs(str(run_dir))
34
35 wandb.init(config=all_args,
36 project=all_args.project_name,
37 entity=all_args.team_name,
38 notes=socket.gethostname(),
39 name=all_args.experiment_name+"_"+str(all_args.seed),
40 group=all_args.scenario_name,
41 dir=str(run_dir),
42 job_type="training",
43 reinit=True)
44
45 columns = ["Name", "Age", "Score"]
46
47 data = [["ZhuZhu", 1, 0], ["MaoMao",2,1]]
48 table = wandb.Table(data=data, columns=columns)
49 wandb.log({"table": table})
50 wandb.finish()
51
52if __name__ == '__main__':
53 test_tables(sys.argv[1:])

Callers 1

test_tables.pyFile · 0.85

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected