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.
A moving sum over one element should equal that element in the output dtype. On master,
move_sum([0.1, -0.3, 0.2], 1)returns-0.30000000000000004and0.19999999999999996for the last two values. Withint32, moving from2147483647to-2147483647returns2147483649.0because the difference overflows before conversion tofloat64.This handles one-element windows directly for the four native dtypes. On the 119 observations in #437, all single-element sums now agree with the input. On master, 110 differed. The patch also applies cleanly on top of #629, which addresses a large value leaving a wider window.
The four new regression cases fail on master and pass with the change. The full native test suite on macOS arm64 passed with 212 tests and one expected failure.
OpenAI Codex implemented the change and ran the tests.