[Biopython-dev] Fwd: Auto-discard notification
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Mon Mar 22 21:18:22 EST 2004
> > I have been playing with the HMM in biopython and I am happy to say it
> > actually works. However, it takes me about 30 minutes to train the
> > model and I would like to save the trained HMM so that I can use it to
> > predict whenever I need to. Any idea how I can save the trained model?
Hi Yair,
I haven't tested this yet, but if the HMM is in pure Python (as it appears
to be!), then the 'pickle' or 'shelve' modules from the Standard Library
may be able to store the HMM. Here's a link to the documentation:
http://www.python.org/doc/lib/module-shelve.html
http://www.python.org/doc/lib/module-pickle.html
Good luck!
More information about the Biopython-dev
mailing list