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

forget about masking when compute accuracy #13

Open
yinxusen opened this issue Jun 1, 2018 · 0 comments
Open

forget about masking when compute accuracy #13

yinxusen opened this issue Jun 1, 2018 · 0 comments

Comments

@yinxusen
Copy link

yinxusen commented Jun 1, 2018

accuracy = tf.reduce_mean(tf.cast(tf.equal(labels, predictions), tf.float32))

The computation of accuracy and the metrics of accuracy below are lack of masking. In this way the accuracy could be wrong because of wrong predictions of padded tokens.

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