2 ms·
Sigh, I know there is interest in learning, but there are a few things that (IMHO) don't follow the best practices. For example - pickle for saving numerical d
by stared 8y ago
Sigh, I know there is interest in learning, but there are a few things that (IMHO) don't follow the best practices.
For example - pickle for saving numerical data. Please, use h5py. Pickle can save any Python objects... and execute any (also - not-python) code. Or in general - you load a pickle, and cannot guess what had happened. With h5py - you have a tree of numerical objects, nothing more, nothing less.
Fo those reasons, I use pickle only when there is no other way to go - i.e. Python objects that cannot be serialized into anything language-agnostic. For saving purely numerical data, h5py is my way to go (http://docs.h5py.org/en/latest/quick.html http://docs.h5py.org/en/latest/quick.html).