Skip to content

Logging Numpy arrays, Torch Tensors and Tensorflow Tensors #46

Open

Description

@BartKeulen

Hi,

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

  1. ryanjulian commented on Apr 22, 2020

    @ryanjulian
    Member

    @BartKeulen thanks for sharing! We'd love a pull request, if you have the time.

  2. BartKeulen commented on Apr 23, 2020

    @BartKeulen
    Author

    Yes, that is possible. I will write the tests somewhere in the next 2 to 3 weeks and submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions