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

Low accuracy in notebook and py #7

Open
Schobs opened this issue Feb 11, 2019 · 3 comments
Open

Low accuracy in notebook and py #7

Schobs opened this issue Feb 11, 2019 · 3 comments

Comments

@Schobs
Copy link

Schobs commented Feb 11, 2019

For some reason I'm hovering around ~0.15 accuracy during the training for both the notebook and the py file. Also, in the final layer, shouldn't it be full4 not full3? To note, I am using python 2.7, so have had to slightly change the import for urlretrieve and also remove the extra param of "latin1" from the pickle opens. Could this have any affect? Further more the py can't find the "helper" module (no easy fix even when copying the other functions in the notebook in). Thanks.

If you have any idea why my accuracy is so low in training any response would be appreacited.

@shooker531
Copy link

Did you ever get to the bottom of this? I'm currently having the same issue.

@Schobs
Copy link
Author

Schobs commented Jul 15, 2020 via email

@shooker531
Copy link

I think I've found the issue. The cost should be tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=model, labels=y)) rather than tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=logits, labels=y)). That seems to have got the accuracy to a good level for me.

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

2 participants