Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another test failure on 0.5.0 (due to sporadic numerical error?) #16

Open
jakirkham opened this issue Apr 6, 2016 · 2 comments
Open

Comments

@jakirkham
Copy link
Contributor

Looks either like a numerical error or too tight of a constraint. This likely results in sporadic failures due to some sort of round off error. There may also be a question of numerical stability here. Not sure. Have not looked close enough to say either way. Here is the error. Using NumPy 1.10.4, Python 2.7.11, gcc 4.8.5.

python /zopt/conda2/conda-bld/work/cmt-0.5.0/code/cmt/python/tests/mcgsm_test.py
....F.......
======================================================================
FAIL: test_gradient (__main__.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/zopt/conda2/conda-bld/work/cmt-0.5.0/code/cmt/python/tests/mcgsm_test.py", line 270, in test_gradient
    self.assertLess(err, 1e-8)
AssertionError: 3.513801324170163e-08 not less than 1e-08

----------------------------------------------------------------------
Ran 12 tests in 1.064s

FAILED (failures=1)
@jakirkham jakirkham changed the title Another test failure on 0.5.0 (due to numerical error?) Another test failure on 0.5.0 (due to sporadic numerical error?) Apr 6, 2016
@FlorianFranzen
Copy link
Collaborator

Is this fixed in the latest release v0.6.0?

@jakirkham
Copy link
Contributor Author

I have seen sporadic failures due to this test in the latest version as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants