MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / get_keys2

Method get_keys2

custom_writer.py:79–85  ·  view source on GitHub ↗

Returns keys2 e.g. loss,acc.

(self, key: str, epoch: int = None)

Source from the content-addressed store, hash-verified

77 return tuple(self.stats[epoch])
78
79 def get_keys2(self, key: str, epoch: int = None) -> Tuple[str, ...]:
80 """Returns keys2 e.g. loss,acc."""
81 if epoch is None:
82 epoch = self.get_epoch()
83 d = self.stats[epoch][key]
84 keys2 = tuple(k for k in d if k not in ("time", "total_count"))
85 return keys2
86
87 def plot_stats(self):
88 self.matplotlib_plot(self.log_dir)

Callers 1

matplotlib_plotMethod · 0.95

Calls 1

get_epochMethod · 0.95

Tested by

no test coverage detected