You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/12/30 07:52:57 UTC

[GitHub] [incubator-mxnet] haojin2 commented on issue #16216: Inconsistent behaviour nd.argmax against np.argmax when there are 'nans' in data

haojin2 commented on issue #16216: Inconsistent behaviour nd.argmax against np.argmax when there are 'nans' in data
URL: https://github.com/apache/incubator-mxnet/issues/16216#issuecomment-569608171
 
 
   @access2rohit Seems like this issue has been addressed in the latest nightly build (mxnet-mkl==1.6.0b20191229):
   ```
   >>> import mxnet as mx
   >>> import mxnet.ndarray as nd
   >>> import numpy as np
   >>> x = np.array([[1,5,3],[float('nan'), 2,6]])
   >>> y = nd.array(x)
   >>> nd.argmax(y, axis=0)
   
   [1. 0. 1.]
   <NDArray 3 @cpu(0)>
   >>> nd.argmax(y, axis=1)
   
   [1. 0.]
   <NDArray 2 @cpu(0)>
   ```
   Closing this issue now, if you found the problem is not solved please feel free to re-open this issue.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services