Closed shpigi closed 9 years ago
Hi shpigi
I am not adding any more functionality to HMMs in the YAHMM project, just fixing major bugs. I have merged yahmm with my larger pomegranate project (where I will add functionality to HMMs as needed) as I am using different graphical models in my research now.
However, if you do not have any tied distributions or edges in your model you should be able to use model.write
and model.read
in order to save your models to an external source. In YAHMM this is a tsv text file, in pomegranate tied emissions/edges are handled and the output is a JSON.
If you'd like to transition your code from YAHMM to pomegranate, all you need to do after pip install pomegranate
(assuming a successful install) is to replace from yahmm import *
with from pomegranate import HiddenMarkovModel as Model
.
Sorry for the inconvenience, let me know if the reading/writing scheme works for you.
Switching to pomegranate ! Way to go ! Thanks.
My understanding is that cdef classes can not be automatically pickled by pickle. This can apparently be solved by adding the appropriate
__reduce__()
function to the class. So perhaps this issue should be labeled as an enhancement request.