question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`.npz`-formatted files saved with `.pkl` extension

See original GitHub issue

Bug description

The save function in data/types.py saves sequences of trajectories in numpy’s .npz format. That said, some scripts save these with the name final.pkl or similar, making it appear that the files are pickle-formatted. Fixing this basically seems to break a few other things (see my recent reverted commits in https://github.com/HumanCompatibleAI/imitation/pull/519), and patching things over would steal focus away from my main task right now.

Steps to reproduce

Run python -m imitation.scripts.train_rl with pendulum common.fast train.fast rl.fast fast common.log_dir=quickstart/rl/.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AdamGleavecommented, Sep 10, 2022

@Rocamonde do you mind taking a look at this sometime in the next few weeks? Not time sensitive, I don’t think it’s blocking anyone, more just causing confusion.

0reactions
Rocamondecommented, Sep 11, 2022

Sure, will put it on my TODO list.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pickle is not saving data to a file with a formatted string name
pkl ? I am using Python 3.8 with pickle 4.0 on Windows 10. import pickle import numpy as np import ...
Read more >
Data Formats and Data Loading Options
Python pickle files may have the extension ".pickle" or ".pkl". A Python pickle file serializes a tuple of two numpy arrays, (feature, label)....
Read more >
PKL File Extension - What is a .pkl file and how do I open it?
A PKL file is pickled to save space when being stored or transferred over a network then is unpickled and loaded back into...
Read more >
Python 3 Notes: Pickling
pickle.dump() is the method for saving the data out to the designated pickle file, usually with the .p or .pkl extension.
Read more >
PKL File Extension - What is it? How to open a PKL file?
A PKL file saved in ZIP compression format can be opened and unpacked with 7-zip. This file format is classified as Compressed. PKL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found