Skip to content

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

@apogre

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions