-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Random bad asserts for stat ops when running tests. #6982
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
Comments
it could be but this error has been around a while actually the issue is that (the actual pandas routines are correct) after the fix above |
pls submit a PR for this if you can (you can pass |
@dalejung if you notice any more pls lmk |
@dalejung not sure my fix actually fixed this....! |
@jreback Hey, the last PR fixes this reliably. Just to clarify, if I have an array of float32, using a float64 accumulator is the correct behavior? |
you can get away with the default accumulator on 64-bit systems because the default actually IS float64; however on 32-bit it breaks, but it will STILL work as long as it doesn't overflow. so you need an overflow on 32-bit to fail, BUT using a 64-bit accumular is always safe, I think (and that's what I did) |
hm, I wasn't even thinking about overflow :/. I was more concerned about the output being different based on the accumulator. Not sure which output is technical correct. Like, the float64 is obviously more correct but I wasn't sure if there was an expectation of using float32 throughout the process. |
I think it should be the same (though precision could affect it), so they could be slightly differently if accumulating really small numbers (that barely fit in float32). I would just always use float64, unless you have a really good reason. |
Agreed. I always use float64 throughout so this is the first time I've given it any thought. |
The text was updated successfully, but these errors were encountered: