Last active
April 3, 2018 03:03
-
-
Save okdolly-001/d47c99bc8249323cb659ffa944d7266f to your computer and use it in GitHub Desktop.
TensorFlow beginner #tensorflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
correct_prediction = tf.equal(tf.argmax(logits, 1), tf.argmax(labels, 1)) | |
#tf.argmax finds the index of the largest value along axis = 1.tf.equal checks whether the two are equal, if the output index (predicted classes are the same, then correct prediction is 1). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment