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"))
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()
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()