Ejemplo n.º 1
0
    def Viterbi(self):
        from hmm_messages_interface import viterbi

        self.stateseq = viterbi(self.trans_matrix, self.aBl, self.pi_0, np.empty(self.aBl.shape[0], dtype="int32"))
Ejemplo n.º 2
0
 def Viterbi_hmm(self):
     from hmm_messages_interface import viterbi
     self.stateseq = viterbi(self.hmm_trans_matrix, self.hmm_aBl,
                             self.hmm_pi_0,
                             np.empty(self.hmm_aBl.shape[0], dtype='int32'))
     self._map_states()
Ejemplo n.º 3
0
 def Viterbi_hmm(self):
     from hmm_messages_interface import viterbi
     self.stateseq = viterbi(self.hmm_bwd_trans_matrix,
             self.hmm_aBl,self.hmm_bwd_pi_0,
             np.empty(self.hmm_aBl.shape[0],dtype='int32'))
     self._map_states()