sxjscience commented on issue #9865: Confusing behavior of some evaluation metrics URL: https://github.com/apache/incubator-mxnet/issues/9865#issuecomment-368120147 I find this is actually a bug. The `pred` will be reshaped if it has ndim=1, see https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/metric.py#L911-L912. In this case, the `pred` and the `label` have both shape (4,) and after reshaping, `pred.shape` will be changed to (4,1). `pred - label` will then generate an array with shape (4, 4) and give the incorrect output.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services