Skip to content

Fix stochastic test failures #43

Description

@jchodera
======================================================================
FAIL: test_discrete_4_2 (bhmm.tests.test_init_discrete.TestHMM)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/_test/lib/python3.5/site-packages/bhmm-0.6.1+22.g6f0de1e-py3.5-linux-x86_64.egg/bhmm/tests/test_init_discrete.py", line 85, in test_discrete_4_2
    assert(np.max(B-Bref) < 0.05 or np.max(B[[1, 0]]-Bref) < 0.05)
AssertionError
----------------------------------------------------------------------

Either set the random number seed to make this deterministic or use the statistical error and a 6-sigma tolerance in order to make these tests fail only when things are broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions