Skip to content

Commit

Permalink
Trac #32890: Unstable doctest in hmm/chmm.pyx
Browse files Browse the repository at this point in the history
Part of #32544:

{{{
sage -t --long --warn-long 42.1 --random-
seed=30462179883676183063850454726642654182 src/sage/stats/hmm/chmm.pyx
**********************************************************************
File "src/sage/stats/hmm/chmm.pyx", line 136, in
sage.stats.hmm.chmm.GaussianHiddenMarkovModel
Failed example:
    try:
        p, s = m.baum_welch(obs)
        assert p > log_likelihood
        assert (4 <= s < 200)
    except RuntimeError:
        pass
Exception raised:
    Traceback (most recent call last):
      File "/home/jonathan/Applications/sage/local/lib/python3.8/site-
packages/sage/doctest/forker.py", line 694, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/jonathan/Applications/sage/local/lib/python3.8/site-
packages/sage/doctest/forker.py", line 1088, in compile_and_execute
        exec(compiled, globs)
      File "<doctest
sage.stats.hmm.chmm.GaussianHiddenMarkovModel[12]>", line 4, in <module>
        assert (Integer(4) <= s < Integer(200))
    AssertionError
**********************************************************************
1 item had failures:
   1 of  15 in sage.stats.hmm.chmm.GaussianHiddenMarkovModel
    [119 tests, 1 failure, 0.53 s]
}}}

URL: https://trac.sagemath.org/32890
Reported by: gh-kliem
Ticket author(s): Michael Orlitzky
Reviewer(s): Markus Wageringel
  • Loading branch information
Release Manager committed Jan 30, 2022
2 parents 41d49e3 + 657a861 commit 65aef17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/stats/hmm/chmm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ cdef class GaussianHiddenMarkovModel(HiddenMarkovModel):
sage: try:
....: p, s = m.baum_welch(obs)
....: assert p > log_likelihood
....: assert (4 <= s < 200)
....: assert (1 <= s <= 500)
....: except RuntimeError:
....: pass
Expand Down

0 comments on commit 65aef17

Please sign in to comment.