MCPcopy
hub / github.com/snap-stanford/GraphGym / dict_to_tb

Function dict_to_tb

graphgym/utils/io.py:57–69  ·  view source on GitHub ↗

Add a dictionary of statistics to a Tensorboard writer Args: dict (dict): Statistics of experiments, the keys are attribute names, the values are the attribute values writer: Tensorboard writer object epoch (int): The current epoch

(dict, writer, epoch)

Source from the content-addressed store, hash-verified

55
56
57def dict_to_tb(dict, writer, epoch):
58 '''
59 Add a dictionary of statistics to a Tensorboard writer
60
61 Args:
62 dict (dict): Statistics of experiments, the keys are attribute names,
63 the values are the attribute values
64 writer: Tensorboard writer object
65 epoch (int): The current epoch
66
67 '''
68 for key in dict:
69 writer.add_scalar(key, dict[key], epoch)
70
71
72def dict_list_to_tb(dict_list, writer):

Callers 2

write_epochMethod · 0.90
dict_list_to_tbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected