Skip to content
Snippets Groups Projects
Commit 53b13c92 authored by Matthew Johnson's avatar Matthew Johnson
Browse files

change a .T to a np.swap_axes for better inhomog support (thanks, Andy!)

parent 15091fd9
No related branches found
No related tags found
No related merge requests found
......@@ -419,7 +419,8 @@ class HMMStatesPython(_StatesBase):
return stateseq
def sample_backwards_normalized(self,alphan):
self.stateseq = self._sample_backwards_normalized(alphan,self.trans_matrix.T.copy())
self.stateseq = self._sample_backwards_normalized(
alphan, np.swapaxes(self.trans_matrix, -1, -2).copy())
### Mean Field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment