horde-ad
horde-ad copied to clipboard
investigate huge floating point errors in (flaky) tests
Depending on the architecture and/or platform, we're sometimes getting test errors like:
FAIL (31.18s)
test/common/TestMnistFCNN.hs:132:
expected: 0.8991
but got: 0.7424999999999999
Use -p '/2 artificial 5 4 3 2 1 5 4 3 2 2393 1.0/' to rerun this test only.
This difference is huuge.
Let's try to investigate this and possibly also other similar test cases, understand what is going on, then fix the test case and/or the implementation.
Related issue: https://github.com/Mikolaj/horde-ad/issues/46