-
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
New operators: min, max #351
Comments
Taking a look at this |
Hey @SchadtJ! All yours :) Note that not all steps mentioned in the "Developing a new operator" guide are necessary for these since they can be implemented as composition of existing operators (see description). I.e., you won't need to code actual Feel free to join our Discord for additional/faster help and answers: https://discord.gg/nT54yATCTy Cheers! |
@ianspektor Thank you! End() does not seem to include the features for the last event, only the timestamp. Should I make a change so that the features are included? The min/max of each feature are required for these new operators. |
Hey 😃, Do we have any more info on the question above? |
hi @SchadtJ Sorry for the late response, this issue flew under my radar after the handoff from Ian. We discussed this internally and we think it's a better solution to calculate the min and max using the sampling parameter like this:
With that said, we are unsure about the names of these operators, we feel that users might expect min/max to return just the python value instead of a single-event EventSet. I'll get back to you with a decision on changing the return type or renaming the operators (or leaving everything as defined originally) soon. You can start working on the implementation in the meantime if you want to or wait for the decision. |
We decided to change the names to The implementation would be done with the Finally, this operator should return an |
New
EventSet.max()
andEventSet.min()
operators.They return a single-event EventSet with each feature's max value, associated to the last event's timestamp in the original EventSet.
To be implemented as aliases to
evset.moving_max(np.inf).end()
andevset.moving_min(np.inf).end()
.See https://github.com/google/temporian/blob/main/CONTRIBUTING.md#developing-a-new-operator for guidance.
Questions or requests for additional guidance from possible contributors more than welcome!
The text was updated successfully, but these errors were encountered: