-
Notifications
You must be signed in to change notification settings - Fork 1
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
inconsistent results between Mac and Linux #18
Comments
I can reproduce the error in the test suite when I manually compile on an m1 mac
the difference is more than 2%, hard to ignore it. |
diff
in test suite
and
|
it is, however, really hard for me to understand the problem. The only clue I have is to perhaps try with different versions of Eigen |
also the PSD bin counts are off |
Do the algorithms involve any kind of (pseudo-)randomness? If the seed / random number generator is different on the two platforms, that could be another reason for the discrepancy. |
Thanks! Didn't check this so far. But it is certainly important to also note this in the docs. Currently, I use |
Does the discrepancy reduce when you increase the number of samples? |
good point, and thanks for the feedback and ideas. Didn't test systematically so far. At least for the PSD I didn't get it to match with 5000000 samples (but I'm sure that this algorithm involves randomness and one should evaluate it more carefully, also making plots). For the SA, things seem to improve with more samples. |
For PSD, it might be worth checking that it is not related to #5
Edit: Ok, this looks like a false alarm Lines 814 to 821 in d641dbf
|
as far as i understand this one of the reasons the test suite for the conda recipe is failing for OSX (https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=628582&view=logs&j=58ac6aab-c4bc-5de2-2894-98e408cc8ec9&t=933f325c-924e-533d-4d95-e93b5843ce8b)
For some reason, for instance, the ASA / A^2 in the reference is 60.7713 but on Mac 59.1876
Not really sure where the difference comes from, however, we should already be a bit saner if we have a test suite that does not depend on rounding. Perhaps we should just have some simple parsers and then use
pytest.approx
The text was updated successfully, but these errors were encountered: