From b9d79a4f4dc6f41aca551643b2af22c9ea01eefe Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:24:06 +0200 Subject: [PATCH] Fix --- examples/temporal.jl | 2 +- libs/HMMTest/src/coherence.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/temporal.jl b/examples/temporal.jl index 2c59277b..5beec75e 100644 --- a/examples/temporal.jl +++ b/examples/temporal.jl @@ -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 diff --git a/libs/HMMTest/src/coherence.jl b/libs/HMMTest/src/coherence.jl index 2a39e336..0deb9fef 100644 --- a/libs/HMMTest/src/coherence.jl +++ b/libs/HMMTest/src/coherence.jl @@ -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