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

Accuracy Computation in tfexpt.py in datasets/family #7

Open
apogre opened this issue Jan 25, 2018 · 0 comments
Open

Accuracy Computation in tfexpt.py in datasets/family #7

apogre opened this issue Jan 25, 2018 · 0 comments

Comments

@apogre
Copy link

apogre commented Jan 25, 2018

correct_predictions = tf.equal(tf.argmax(actual_y,1),tf.argmax(predicted_y,1))

tf.argmax(actual_y,1) returns the index with the largest value across axis of a tensor.
How can this handle cases where there are more than one correct answers?

e.g. test case:
i_aunt(gina,Y) +i_aunt(gina,alfonso) +i_aunt(gina,sophia)

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

1 participant