Skip to content

Unstable doctest in hmm/chmm.pyx #32890

@kliem

Description

@kliem

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]

Depends on #32907

CC: @orlitzky

Component: doctest framework

Author: Michael Orlitzky

Branch/Commit: 657a861

Reviewer: Markus Wageringel

Issue created by migration from https://trac.sagemath.org/ticket/32890

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions