`.npz`-formatted files saved with `.pkl` extension
See original GitHub issueBug 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:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
Sure, will put it on my TODO list.