MarvinBertin / HiddenMarkovModel_TensorFlow

TensorFlow: Viterbi, Forward-Backward and Baum Welch with a Hidden Markov Model (HMM)
133 stars 50 forks source link

fix tf.reverse at backward for tensorflow v1.x #4

Open fotstrt opened 4 years ago

fotstrt commented 4 years ago

@365andreas and I have found an issue while running the Baum-Welch algorithm for HMM with TensorFlow 1.15. The tf.reverse() for backward function was called in a wrong way (since it referred to an older version of TensorFlow (see here)) leading to wrong results. We have changed its call.