Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

mxnet example error #4956

Closed
NanyangYe opened this issue Feb 9, 2017 · 2 comments
Closed

mxnet example error #4956

NanyangYe opened this issue Feb 9, 2017 · 2 comments

Comments

@NanyangYe
Copy link

Dear all:

I have found an error when running fine-tuning pre-trained example (http://mxnet.io/how_to/finetune.html) with the latest mxnet version. Is there any way to fix it?

Traceback (most recent call last):
File "FineTune.py", line 76, in
mod_score = fit(new_sym, new_args, aux_params, train, val, batch_size, num_gpus)
File "FineTune.py", line 66, in fit
return mod.score(val)
TypeError: score() takes at least 3 arguments (2 given)

@NanyangYe NanyangYe changed the title mxnet main programm error mxnet example error Feb 9, 2017
@devaib
Copy link

devaib commented Feb 13, 2017

Hello, @lincolnBush.
First,

from mxnet import metric

then,

metric = mx.metric.Accuracy()
return mod.score(val, metric)

There are also other metrics for you to choose from.

@szha
Copy link
Member

szha commented Sep 28, 2017

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!

@szha szha closed this as completed Sep 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants