Skip to content

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

Description

@apogre

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions