예제 #1
0
파일: hmm_states.py 프로젝트: t3476/pyhsmm
    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"))
예제 #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()
예제 #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()