Skip to content

Commit

Permalink
Update to only permute if observations are gaussian
Browse files Browse the repository at this point in the history
  • Loading branch information
ncguilbeault committed Jul 10, 2024
1 parent d13cb16 commit a3f54a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Bonsai.ML.HiddenMarkovModels/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,11 @@ def start_loop(loop):
loop.run_forever()

def on_completion(future):
permutation = calculate_permutation(
self.observation_params[0], self.params[2][0])
super(HiddenMarkovModel, self).permute(permutation)

if self.observation_type == "gaussian":
permutation = calculate_permutation(
self.observation_params[0], self.params[2][0])
super(HiddenMarkovModel, self).permute(permutation)

initial_state_distribution = None if vars_to_estimate[
"initial_state_distribution"] else self.initial_state_distribution
Expand Down

0 comments on commit a3f54a1

Please sign in to comment.