Skip to content

Commit

Permalink
Fix a size -> length that I've missed
Browse files Browse the repository at this point in the history
  • Loading branch information
fausto-mpj committed Dec 9, 2024
1 parent cf3c5f7 commit 4c1b890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/interfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c1b890

Please sign in to comment.