From 5b4ba848697e422c73a104a68b80dfc5b8fee4f0 Mon Sep 17 00:00:00 2001 From: Richard Preen Date: Wed, 5 Jun 2024 11:48:49 +0100 Subject: [PATCH] update comments --- aisdc/attacks/likelihood_attack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aisdc/attacks/likelihood_attack.py b/aisdc/attacks/likelihood_attack.py index e3e3993e..3cb067bb 100644 --- a/aisdc/attacks/likelihood_attack.py +++ b/aisdc/attacks/likelihood_attack.py @@ -366,7 +366,7 @@ def run_scenario_from_preds( # pylint: disable = too-many-statements, too-many- target_conf = combined_target_preds[i, label] target_logit = _logit(target_conf) - # get the probability the target logit is not a non-member + # compare the target logit with behaviour observed as a non-member out_scores = np.array(out_confidences[i]) out_mean = 0 out_std = 0 @@ -393,7 +393,7 @@ def run_scenario_from_preds( # pylint: disable = too-many-statements, too-many- out_prob = norm.cdf(target_logit, loc=out_mean, scale=out_std + EPS) mia_scores.append([1 - out_prob, out_prob]) elif self.mode == "online-carlini": - # get the probability the target logit is not a member + # compare the target logit with behaviour observed as a member in_scores = np.array(in_confidences[i]) in_mean = 0 in_std = 0