-
Notifications
You must be signed in to change notification settings - Fork 795
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
Unit Test Tolerances #168
Comments
The increment delta and the tolerance have some relationship but not an obvious one, I think. I don't know immediately how to answer your question, but would welcome a reasoned PR that resolves this on both 32 and 64-bit without compromising correctness. |
@callumcrown I have created a branch |
You are right, @callumcrown : unit tests fail in some architectures. So, feel free of proposing a PR against the branch |
Anyone wants to propose a PR to fix this? If not, I'll try to address it next week. |
@jlblancoc Thanks a lot for looking into this! Looking at those build logs, it looks pretty similar to the results in our build environment too. Good job on reproducing the issue! I was worried that it might just be our system. I can try find some time to look into this again next week, although I don't currently have any ideas other than changing tolerances, which as @dellaert pointed out, isn't ideal... I wonder if there are any implementation changes that could be made to |
@jlblancoc unfortunately some last minute travel has come up and I won't be able to look into this until early next year. If no one has time to look into it before then I can pick it back up in January. Sorry about that. |
@callumcrown ok, I'm taking care of this one... will PR when tests pass on the PPA. |
For the records: As a follow up, there are additional test failures (already trying to fix them):
|
@jlblancoc Is the bad_alloc still there for latest develop? BTW, I think the tolerance failure is probably related to the implementation of numerical solutions: #73 (comment) |
Also, #183 has unresolved issue of ALIGNED_ALLOC which should be marked resolved if this is closed. |
@jlblancoc I wonder if you still remember which assertion leads to the numeric error? is it I encountered similar issue in #259, and I failed to reproduce on any of my systems... Thanks in advance! |
@jlblancoc I have the exactly same problem (expected should be 1 but becomes 0) in the |
Description
When running the Unit tests in some 32bit architectures, some of the unit test
assert_eaual
assertions fail with deltas in the order of 1e-6.Looking into this further, the
expected
results in many of the tests (all of the failing tests, but many of the non-failing ones too) are calculated using functions fromnumericalDerivative.h
. By default, the increment for numerical derivatives is 1e-5. All of the tests for thenumericalDerivative.h
functions have a tolerance of 1e-5. However throughout the rest of the code base, there seems to be an expectation of 1e-9 tolerances.Is it OK that tests based on code that has only been proven to generate results within a tolerance of 1e-5 are expected to pass with tolerances of 1e-9?
This is not going to be easy to reproduce without our build environment - but I can test any suggestions in our builds.
However, I am more interested in answering whether or not the currently used tolerances make sense than a specific fix.
Failing Tests
The text was updated successfully, but these errors were encountered: