Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a bug in evaluating accuracy (#2736)
* fix accuracy computation in MNIST siamese graph example previous code: ``` def compute_accuracy(predictions, labels): '''Compute classification accuracy with a fixed threshold on distances. ''' return labels[predictions.ravel() < 0.5].mean() ``` is not accuracy over all the samples, but over samples with negative prediction. * add space around "==" follow François's suggestion
- Loading branch information
fefb70b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
The accuracy however became very low after this update.
What's the problem? Thanks.
fefb70b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reverted this change.