Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Sep 29, 2024
1 parent 5c25d71 commit 5c1d5c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions examples/basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ This is important to keep in mind when testing new models.
In many applications, we have access to various observation sequences of different lengths.
=#

nb_seqs = 300
nb_seqs = 1000
long_obs_seqs = [last(rand(rng, hmm, rand(rng, 100:200))) for k in 1:nb_seqs];
typeof(long_obs_seqs)

Expand Down Expand Up @@ -258,6 +258,5 @@ hcat(initialization(hmm_est_concat), initialization(hmm))
# ## Tests #src

control_seq = fill(nothing, last(seq_ends)); #src
test_identical_hmmbase(rng, hmm, 100; hmm_guess) #src
test_coherent_algorithms(rng, hmm, control_seq; seq_ends, hmm_guess) #src
test_type_stability(rng, hmm, control_seq; seq_ends, hmm_guess) #src
3 changes: 1 addition & 2 deletions examples/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ Another useful array type is [StaticArrays.jl](https://github.com/JuliaArrays/St

@test nnz(log_transition_matrix(hmm)) == nnz(transition_matrix(hmm)) #src

seq_ends = cumsum(rand(rng, 100:200, 100)); #src
seq_ends = cumsum(rand(rng, 100:200, 1000)); #src
control_seq = fill(nothing, last(seq_ends)); #src
test_identical_hmmbase(rng, hmm, 100; hmm_guess) #src
test_coherent_algorithms(rng, hmm, control_seq; seq_ends, hmm_guess, init=false, atol=0.08) #src
test_type_stability(rng, hmm, control_seq; seq_ends, hmm_guess) #src
# https://github.com/JuliaSparse/SparseArrays.jl/issues/469 #src
Expand Down
2 changes: 1 addition & 1 deletion libs/HMMTest/ext/HMMTestHMMBaseExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module HMMTestHMMBaseExt
using HiddenMarkovModels
import HiddenMarkovModels as HMMs
using HMMBase: HMMBase
using HMMTest: HMMTest
using HMMTest
using Random: AbstractRNG
using Statistics: mean
using Test: @test, @testset, @test_broken
Expand Down

0 comments on commit 5c1d5c6

Please sign in to comment.