-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add axis and where arguments to loss functions. #912
Add axis and where arguments to loss functions. #912
Conversation
Thanks @carlosgmartin, could you add tests? |
@carlosgmartin , there are some conflicts with main, do you mind updating the pull request? thanks |
hey @carlosgmartin , thanks for the ping and apologies for the late reply, most of the team is on vacation 🏖️ The addition of the axis argument looks good to me, and the use of an axis kwarg if fairly common in numpy-like functions. ✅ Regarding the "where" argument however, I haven't seen it yet in other libraries. Do you know of any numpy/jax/flax/etc. functions that admit a "where" or a "mask" or similar kwarg? I just want to make sure that our API is as similar as possible to other libraries that have already implemented similar functionality. |
excellent, thanks for the info! |
one more thing: could you please add the tag |
also, the new kwargs should be described in the function docstring (on top of adding the |
@fabianp Done. |
thanks, we're almost there. Please add type annotations for these two new kwargs. These are likely
|
@fabianp Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
#902