Pickling objects
See original GitHub issueI wanted to pickle the LogisticCalibration()
class after I had fit it (for later re-use), but I was getting an error related to can't pickle _thread.Rlock objects
.
I was able to find a work-around by setting logger
in the class no None
. Seems a bit hacky, but it did work. Might be something to think about in future releases
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Pickling Objects in Python - ThePythonGuru.com
The pickle module is Python-specific which means that once the object is serialized you can't deserialize it using another language like PHP, Java,...
Read more >The Python pickle Module: How to Persist Objects in Python
The Python pickle module is another way to serialize and deserialize objects in Python. It differs from the json module in that it...
Read more >Understanding Python Pickling with example - GeeksforGeeks
Python pickle module is used for serializing and de-serializing a Python object structure. Any object in Python can be pickled so that it ......
Read more >How to Pickle and Unpickle Objects in Python - Stack Abuse
Pickling and unpickling in Python is the process that is used to describe the conversion of objects into byte streams and vice versa ......
Read more >Python Pickle Module for saving Objects by serialization
Pickling is the serializing and de-serializing of python objects to a byte stream. Unpicking is the opposite. You may hear this methodology called...
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 FreeTop 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
Top GitHub Comments
Hi @VCBE123 thanks for pointing out. Indeed, this is a point I’ve missed to document in the README. You can simply store and reload a model by
Hope this helps!
Finally, I dive into the code and reconstruct the model.