2013/12/19 Su, Jian, Ph.D. <[email protected]>: > Zach, > > You can save a classifier with pickle, but you need to train the > classifier after you load it, right?
No all the internal state of the classifier is preserved as well. > As Ryan pointed out, joblib is the solution. One bad thing is it creates > multiple files. But on the other hand that makes it possible to dump and load it faster and also makes it possible to memory map the large parameter arrays by passing mmap_mode='r' to joblib.load for instance. Memory mapping can be useful to share the memory of models loaded in several python process (e.g. gunicorn wsgi workers or celery workers) on the same server for instance (to reduce the overall memory usage). -- Olivier http://twitter.com/ogrisel - http://github.com/ogrisel ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
