Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored Sep 29, 2024
1 parent 290035f commit b9d79a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/temporal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,6 @@ map(mean, hcat(obs_distributions(hmm_est, 2), obs_distributions(hmm, 2)))

# ## Tests #src

@test mean(obs_seq[1:2:end]) < 0 < mean(obs_seq[2:2:end]) #src
@test mean(obs_seqs[1][1:2:end]) < 0 < mean(obs_seqs[1][2:2:end]) #src
test_coherent_algorithms(rng, hmm, control_seq; seq_ends, hmm_guess, init=false) #src
test_type_stability(rng, hmm, control_seq; seq_ends, hmm_guess) #src
2 changes: 1 addition & 1 deletion libs/HMMTest/src/coherence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function test_coherent_algorithms(

if !isnothing(hmm_guess)
hmm_est, logL_evolution = baum_welch(hmm_guess, obs_seq, control_seq; seq_ends)
@test all(>=(0), diff(logL_evolution))
@test all(>=(-0.5e-5), diff(logL_evolution))
test_equal_hmms(hmm, hmm_guess, control_seq[1:2]; atol, init, flip=true)
test_equal_hmms(hmm, hmm_est, control_seq[1:2]; atol, init)
end
Expand Down

0 comments on commit b9d79a4

Please sign in to comment.