Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the 50-million-element float32 example from #462,
bn.nanmeangives 0.33554432 for data with a mean near 0.5. The running sum loses contributions once its spacing grows too large.Accumulate native float32 inputs in float64 and round the mean once, after division. This applies to full-array and axis reductions and preserves their existing return types. With a fixed seed, both now give 0.50000060, the float32-rounded reference. This addresses the mean reported in #462. The standard deviation has a separate fix in #608.
Both regression cases failed on master. The full suite on macOS arm64 passed with 210 tests and one expected failure.