Top "Pickle" questions

An object serialization module for Python.

Incremental training of random forest model using python sklearn

I am using the below code to save a random forest model. I am using cPickle to save the trained …

python pickle random-forest training-data
What is faster - Loading a pickled dictionary object or Loading a JSON file - to a dictionary?

What is faster: (A) 'Unpickling' (Loading) a pickled dictionary object, using pickle.load() or (B) Loading a JSON file to …

python json pickle simplejson
UnpicklingError: pickle data was truncated when trying to read a dictionary from a shelved file

I'm a teacher, and I'm trying to write a simple function that saves my students' emails in a dictionary for …

python dictionary pickle shelve
pickle cython class

I have to save and load a cython class instance. My cython class is this plus several methods: import numpy …

python class pickle cython reduce
more efficient way to pickle a string

The pickle module seems to use string escape characters when pickling; this becomes inefficient e.g. on numpy arrays. Consider …

python numpy pickle space-efficiency
How to hash a large object (dataset) in Python?

I would like to calculate a hash of a Python class containing a dataset for Machine Learning. The hash is …

python hash numpy sha1 pickle
pickle data was truncated

i created a corpus file then stored in a pickle file. my messages file is a collection of different news …

python data-science pickle data-science-experience
what is "file_like_object", what is "file"; pickle.load() and pickle.loads()

I am figuring out the differences between the pickle.load() and pickle.loads(). Somebody said what kind of object that …

python pickle data-processing
Attacking Python's pickle

I'm writing a web app that stores user input in an object. This object will be pickled. Is it possible …

python security pickle
Loading a pkl file using dill

I have a very complex dictionary and dumping, loading directly using dill works. This is in reference to this answer. …

python-2.7 dictionary pickle dill