narla.history
History
- class narla.history.History(storage_size=10000)[source]
Bases:
object
History object contains arbitrary data from training
- Parameters
storage_size (
int
) – Max storage size
- get(key, stack=False)[source]
Access an element from the History
- Parameters
key (str) – Name of element to Access
stack (bool) – If
True
will stack the values into a Tensor
- Return type
list | torch.Tensor
- record(**kwargs)[source]
Store all the keyword arguments
- Parameters
kwargs – If the key word doesn’t yet exist an internal list will be created and the value appended to it