Update test cases to prevent platform-specific variability
ztangent opened this issue · comments
Per this comment, there are sometimes situations where Gen's test suite fails due to platform variability (e.g. 32-bit vs 64-bit systems) affecting random number generation even with fixed number generation, and hence approximate equality tests, such as the one below:
Gen.jl/test/inference/particle_filter.jl
Lines 146 to 170 in b959223
This platform-specific variability happens despite fixing the random seed to 1. I'm not entirely sure what the most principled way to address this is, but the simple fix would be to relax the tolerance level (e.g. to 0.03
from 0.02
) so that platform variability doesn't overly affect the result.