-
Notifications
You must be signed in to change notification settings - Fork 12
Adding support for time-varying HMMs #33
base: master
Are you sure you want to change the base?
Conversation
Hi, |
Apologies for the delay in answering! I am not aware of any specific reference for time-inhomogeneous HMMs, but they are basically Markov models where the transition matrix is different (but fixed) at each time point t=1, 2, 3, ... This usually means that the observed chains have a fixed length T, and that there are T-1 transition matrices to learn. And indeed, you would need to observe multiple realisations of the chain which is what I am currently doing, it took me a while to realise that this is currently not supported with HMMBase. It might be worth putting time-inhomogeneous HMMs into a separate add-on package if there's any external use for it... |
Thanks for the answer.
for the rand to work properly.
|
Sorry for that! The pull request is super buggy and I continued working on it locally. I will upload a better version soon. |
Thanks! Do you plan to deal with unfinished sequence where the chain stops before reaching |
The more correct way would be to provide a multidimensional array, ie. using |
I would be interested if this package can support time-varying HMMs. May I ask if there have been any progress on this PR? |
I do not have the time anymore to review complex PRs to HMMBase, but if anyone feels like taking over maintenance for this repository, or promoting a fork with new features, let me know. |
I have a specialised fork for this that I am planning to upload this or next week, it might be of use |
I have a very simple version over here, it mainly adds another index for time in the HMM structures. It's not well documented but most of the code is a straightforward extension of the original, so please let me know if you have any questions. |
Hi. If it's okay with you, I'd like to continue maintaining this package. |
Incorporating this into MLJ.jl sounds like a very good idea - HMMs are a staple in many ML applications... |
Hello, I am definitelly interested in this PR. |
I did that PeriodicHiddenMarkovModels.jl based on |
Ok thanks I will check it out. But indeed in my case it's not periodic. But I don't think it will be a problem. |
Some applications require HMMs where the transition matrices and/or the output distributions vary with time. Since these are simple modifications I created an experimental fork with support for these - the code is pretty much identical except that the dimensions of
hmm.A
andhmm.B
are increased by one and that samples from these HMMs have fixed lengths. I was wondering if there would be any interest for supporting these in HMMBase, or if a separate package would be a better place for this.Please excuse the low code quality, I was planning on improving it and add some tests later when I have more time. This is preliminary!