Update accuracy_utils.py

fix pylint warning/errors.
This commit is contained in:
Judd 2020-02-14 16:06:02 +08:00 committed by GitHub
parent 8e3fc97982
commit e390647355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,8 @@ class StreamingAccuracyStats(object):
correct_match_percentage = self._how_many_c / self._how_many_gt * 100
wrong_match_percentage = self._how_many_w / self._how_many_gt * 100
false_positive_percentage = self._how_many_fp / self._how_many_gt * 100
tf.compat.v1.logging.info('{:.1f}% matched, {:.1f}% correct, {:.1f}% wrong, '
'{:.1f}% false positive'.format(
any_match_percentage, correct_match_percentage,
wrong_match_percentage, false_positive_percentage))
tf.compat.v1.logging.info(
'{:.1f}% matched, {:.1f}% correct, {:.1f}% wrong, '
'{:.1f}% false positive'.format(
any_match_percentage, correct_match_percentage,
wrong_match_percentage, false_positive_percentage))