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

Method get_keys

custom_writer.py:73–77  ·  view source on GitHub ↗

Returns keys1 e.g. train,eval.

(self, epoch: int = None)

Source from the content-addressed store, hash-verified

71 return self.epoch
72
73 def get_keys(self, epoch: int = None) -> Tuple[str, ...]:
74 """Returns keys1 e.g. train,eval."""
75 if epoch is None:
76 epoch = self.get_epoch()
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."""

Callers 1

matplotlib_plotMethod · 0.95

Calls 1

get_epochMethod · 0.95

Tested by

no test coverage detected