Small fix in output of run_all_attack_summary

PiperOrigin-RevId: 318064829
This commit is contained in:
A. Unique TensorFlower 2020-06-24 08:05:04 -07:00
parent 06765f69f0
commit e38c351e8d

View file

@ -680,6 +680,7 @@ def run_all_attacks_and_create_summary(
results, metrics, filterby='misclassified')
if misclassified:
for metric in metrics:
best_value = misclassified['misclassified-' + metric]['value']
best_attacker = misclassified['misclassified-' + metric]['attacker']
summary.append(f'========== {metric.upper()} for misclassified '
'==========')