HMM, reverse engineering the transition matrix

101 Views Asked by At

I fitted a 2-states-HMM model last week, and generate a bunch of 1s and 0s, but I forgot to store its parameters (transition matrix). Now, I only got these 1s and 0s, how do I backward/reverse-engineering to estimates these transition matrix?

Things that I have:

  1. the input data
  2. the outputed 0s and 1s from a fitted 2-states-HMM

What I want:

  1. The transition matrix of the two-states HMM model.


Please see the exact input and output data here:

https://colab.research.google.com/drive/1N-PKaeHMVI4S1VU7fgcgDqRT5L3h8R0L?usp=sharing

And go to the bottom which it says Input_data and Output_data