From e38c351e8de7d838b85e13c9a7886dc2a1bbaac8 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 24 Jun 2020 08:05:04 -0700 Subject: [PATCH] Small fix in output of run_all_attack_summary PiperOrigin-RevId: 318064829 --- .../membership_inference_attack/membership_inference_attack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py b/tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py index 7d130fd..c06fa36 100644 --- a/tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py +++ b/tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py @@ -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 ' '==========')