Skip to content

Commit

Permalink
reduce line length to 120
Browse files Browse the repository at this point in the history
Signed-off-by: Arunabh <[email protected]>
  • Loading branch information
Foxglove144 committed Jul 3, 2023
1 parent f8f4ceb commit eb2f277
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions art/attacks/evasion/targeted_universal_perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,14 @@ def __init__(
:param attacker: Adversarial attack name. Default is 'fgsm'. Supported names: 'simba'.
:param attacker_params: Parameters specific to the adversarial attack. If this parameter is not specified,
the default parameters of the chosen attack will be used.
:param delta: The maximum acceptable rate of correctly classified adversarial examples by the target classifier.
:param delta: The maximum acceptable rate of correctly classified adversarial examples by the classifier.
The attack will stop when the targeted success rate exceeds `(1 - delta)`.
'delta' should be in the range `[0, 1]`.
:param max_iter: The maximum number of iterations for computing universal perturbation.
:param eps: The perturbation magnitude, which controls the strength of the universal perturbation applied
to the input samples.
A larger `eps` value will result in a more noticeable perturbation, potentially leading to higher
attack success rates but also increasing the visual distortion in the generated adversarial examples.
Default is `10.0`.
to the input samples. A larger `eps` value will result in a more noticeable perturbation,
potentially leading to higher attack success rates but also increasing the visual distortion
in the generated adversarial examples. Default is `10.0`.
:param norm: The norm of the adversarial perturbation. Possible values: "inf", np.inf, 2
"""
super().__init__(estimator=classifier)
Expand Down

0 comments on commit eb2f277

Please sign in to comment.