I have trained a RandomForestClassifier from Python Sckit Learn Module with very big dataset, but question is how can I possibly save this model and let other people apply it on their end. Thank you!
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
The recommended method is to use
joblib
, this will result in a much smaller file than a pickle:See the online docs
Have you tried pickling the
RandomForestClassifier
using the Pickle module and then saving it to the disk?Here’s an example based on the pickle docs:
The “other people” could then reload the pickled object as follows: