Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Jun 5, 2024
1 parent fba1c64 commit 5b4ba84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aisdc/attacks/likelihood_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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":

Check warning on line 395 in aisdc/attacks/likelihood_attack.py

View check run for this annotation

Codecov / codecov/patch

aisdc/attacks/likelihood_attack.py#L395

Added line #L395 was not covered by tests
# 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
Expand Down

0 comments on commit 5b4ba84

Please sign in to comment.