-
Notifications
You must be signed in to change notification settings - Fork 44
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
380: Initial implementation of moving_product operation #383
Conversation
…gProductAccumulator class
Key Changes: - Start and end indices (`start_idx` and `end_idx`) introduced to track the window. - `Add` and `Remove` methods updated to adjust the window indices without affecting the product. - `Result` method now calculates the product on-demand, considering zeros and ignoring NaN values for accuracy. - Added a TODO comment to explore future optimizations for the Result method to enhance calculation efficiency.
Hi @akshatvishu I just tested this locally and found a couple of small things:
Other than these small things the PR is looking great, I think we can merge this after these points are addressed. |
…_set_ops.py fix(moving_product): Update the moving_product logic to return NaN when the input only contains NaN.
…duct in event_set_ops.py
…pling and test_with_variable_winlen_same_sampling.
Congrats and thanks on the huge contribution @akshatvishu! 💪🏼 |
Big thanks to @javiber for his blazing fast reviews and suggestions. Couldn't have done this without his guidance 🙏 |
Closes #380
Implemented initial setup for
moving_product
in Temporian. Added method stubs and began C++ integration.ToDo:
Maybe add it undertemporian/temporian/beam