MCPcopy
hub / github.com/dmlc/dgl / log

Method log

examples/pytorch/gcmc/utils.py:19–26  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

17 self._file.flush()
18
19 def log(self, **kwargs):
20 self._csv.writerow(
21 [
22 parse_format % kwargs[attr_name]
23 for attr_name, parse_format in self._attr_format_dict.items()
24 ]
25 )
26 self._file.flush()
27
28 def close(self):
29 self._file.close()

Callers 15

trainFunction · 0.95
_gen_hypercubeMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
scale_amplificationFunction · 0.45
scale_attenuationFunction · 0.45
__init__Method · 0.45
_loss_regularizeMethod · 0.45
_loss_regularizeMethod · 0.45
lossMethod · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected