Skip to content
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

why accuracy always 0 #4054

Closed
liuliuqiu opened this issue Apr 27, 2016 · 4 comments
Closed

why accuracy always 0 #4054

liuliuqiu opened this issue Apr 27, 2016 · 4 comments

Comments

@liuliuqiu
Copy link

I'm doing the two classification, the last innerproduct num_output=2,use softmax as loss,but the accuracy always 0!
who can hep me !

@kevin-li
Copy link

If the labels are zeros and ones, the num_output should be 1 as the label is one dimensional.

@liuliuqiu
Copy link
Author

My label is two and three,then the num_output should be what?

@kevin-li
Copy link

Still 2. Just change your labels to 0 and 1. You can simply map the output of network to whatever label you want as long as they are distinct.

@seanbell
Copy link

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

Please do not post usage, installation, or modeling questions, or other requests for help to Issues.
Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants