Closed LTGZZ closed 6 years ago
oh, doc is out-of-date. It should be like this: https://github.com/dmlc/MXNet.jl/blob/ec2b6995dc2283e52f40b8ab1f6485230d02c779/examples/mnist/mlp.jl#L49-L63
About if indmax(probs[:,i]) == labels[i]+1
Both of right-hand side and left-hand side are normal Julia Array. So, it's no problem.
It works, thanks !
I hope the info http://dmlc.ml/MXNet.jl/latest/tutorial/mnist/#Digit-Recognition-on-MNIST-1 will be updated.
sure, will do
Hi,
in this tutorial: http://dmlc.ml/MXNet.jl/latest/tutorial/mnist/#convolutional-neural-networks
This portion of code doesn't work:
I guess that
push!(labels, copy(mx.get_label(batch)))
must bepush!(labels, copy(mx.get_label(eval_provider,batch)))
But I don't understand
if indmax(probs[:,i]) == labels[i]+1
because it's not comparing the same type of object, so it doesn't work.