From 0681ec2610b379f81369106feee3b2125d4537f6 Mon Sep 17 00:00:00 2001 From: Guillaume Dalle <22795598+gdalle@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:47:42 +0100 Subject: [PATCH] Fix FB output --- test/arrays.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/arrays.jl b/test/arrays.jl index 6f63794a..316f019a 100644 --- a/test/arrays.jl +++ b/test/arrays.jl @@ -22,11 +22,10 @@ hmm_init = HMM(p, A, d_init); obs_seq = rand(hmm, T).obs_seq; -γ, ξ, logL = forward_backward(hmm, obs_seq); +γ, logL = forward_backward(hmm, obs_seq); hmm_est, logL_evolution = @inferred baum_welch(hmm_init, obs_seq); @testset "Sparse" begin - @test eltype(ξ) <: AbstractSparseArray @test typeof(hmm_est) == typeof(hmm_init) @test nnz(transition_matrix(hmm_est)) <= nnz(transition_matrix(hmm)) end @@ -42,10 +41,9 @@ hmm = HMM(p, A, d); hmm_init = HMM(p, A, d_init); obs_seq = rand(hmm, T).obs_seq; -γ, ξ, logL = forward_backward(hmm, obs_seq); +γ, logL = forward_backward(hmm, obs_seq); hmm_est, logL_evolution = @inferred baum_welch(hmm_init, obs_seq); @testset "Static" begin - @test eltype(ξ) <: StaticArray @test typeof(hmm_est) == typeof(hmm_init) end