From 4c1b89093b82f0c5f712f14b2a40e7f0eb5a50bb Mon Sep 17 00:00:00 2001 From: Fausto Marques Pinheiro Junior Date: Mon, 9 Dec 2024 17:51:23 -0300 Subject: [PATCH] Fix a `size` -> `length` that I've missed --- examples/interfaces.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/interfaces.jl b/examples/interfaces.jl index bfd0399..6bd7f31 100644 --- a/examples/interfaces.jl +++ b/examples/interfaces.jl @@ -204,7 +204,7 @@ function StatsAPI.fit!( hmm.init ./= sum(hmm.init) hmm.trans ./= sum(hmm.trans; dims=2) - for i in 1:size(hmm, nothing) + for i in 1:length(hmm) ## weigh each sample by the marginal probability of being in state i weight_seq = fb_storage.γ[i, :] ## fit observation distribution i using those weights