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
stddev stability issue #657
Comments
Lovely! </irony> Those are not small errors anymore. We should definitely observe if this happens again with the new code. How can we make the error reproducible, i.e. get the same state of the random number generator etc.? Or perhaps we could add code similar to LiberTEM/tests/test_analysis_masks.py Lines 932 to 1011 in afe3c42
|
I didn't have time to check in the error log yet - how large were the absolute errors? Maybe we should have better assertion output here, which gives some statistics on the difference? To reproduce, maybe try to run in a loop again?
I mean, one easy way is to just increase the dynamic range by a large margin, but this would be guaranteed to fail and also be expected. The hard part would be to find out how stable the algorithm should actually be. I remember from the paper that they did implement Kahan summation in the minibatch part to increase stability, but I'm not sure how feasible this is. |
For example 2.4994637e-01 vs 2.4994595e-01, i.e. two orders of magnitude more than the decimal digits of precision of float32.
What about "at least as good as In fact, LiberTEM already performs a three-level hierarchical sum if tile and partition sizes are well-chosen: First within the tile, then within the partition, and then final aggregation. I was already thinking on how to do a complete pairwise hierarchical sum without modifying the source buffer with only Or just switch to |
Well, that would mean actually decreasing the dynamic range of our test data, as the two-pass algorithm is AFAIK the most stable of the ones compared in the paper, right? |
Counter stability issues with this algorithm Closes LiberTEM#657
Counter stability issues with this algorithm Closes #657
Counter stability issues with this algorithm Closes LiberTEM#657
See the following CI failure: https://travis-ci.org/LiberTEM/LiberTEM/jobs/656632518
Not sure if this is fixed in #640.
The text was updated successfully, but these errors were encountered: