-
Notifications
You must be signed in to change notification settings - Fork 53
keepdims argument to argmin() and argmax() #109
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
Comments
I support to keep
|
FYI, the same issue was already raised in NumPy: numpy/numpy#8710. |
@leofang Thanks for the links! |
Looks like we're in agreement here, so I'll close this issue. Thanks all! |
The
argmin
andargmax
functions require thekeepdims
keyword argument, same asmin
andmax
. However, in NumPy,min
andmax
have this keyword argument, butargmin
andargmax
do not. We should confirm whether this keyword argument actually makes sense for these functions, or whether it was just added to these functions by mistake because they are also in the non-arg variants.The description for
keepdims
is as follows:Perhaps the reason NumPy doesn't implement this for the
arg*
functions is that they return indices, so maintaining broadcastability is not important. The documentation formax
says (emphasis added):The text was updated successfully, but these errors were encountered: