You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Logging Numpy arrays, Torch Tensors and Tensorflow Tensors #46
Thank you for this nice a simple tool for logging machine learning research. I often encounter situations where I would like to save multi-dimensional Numpy arrays. For example, the observation at each time-step in a reinforcement learning experiment.
It would be nice to have an output logger that supports Numpy arrays, Pytorch Tensors and Tensorflow Tensors.
I have written a simple output logger, NpzOutput, that writes Numpy arrays to a .npz file using Numpys savez functions. It is not optimal (no incremental saving), but thought I share it in case somebody is interested.
Activity
ryanjulian commentedon Apr 22, 2020
@BartKeulen thanks for sharing! We'd love a pull request, if you have the time.
BartKeulen commentedon Apr 23, 2020
Yes, that is possible. I will write the tests somewhere in the next 2 to 3 weeks and submit a pull request.