achirkin / easytensor

Many-dimensional type-safe numeric ops
https://hackage.haskell.org/package/easytensor
BSD 3-Clause "New" or "Revised" License
46 stars 2 forks source link

prop_Comparisons fails every once in a while #11

Closed achirkin closed 5 years ago

achirkin commented 6 years ago

A QuickCheck test prop_Comparisons fails from time to time. QuickCheck generates DataFrames randomly, 100 tests for each property by default. Usually, this kind of problem happens due to floating point precision errors. But in this case, it is hard to find out what can cause such error.

achirkin commented 5 years ago

This particular test is fixed in v2 branch, but there are some other tests that rarely fail due to numerical stability issues of some floating-point operations.