a02b5c28b1ebe56bf5513d16aa6ef59d08ee28a5,art/attacks/universal_perturbation.py,UniversalPerturbation,__init__,#UniversalPerturbation#Any#Any#Any#Any#Any#Any#Any#Any#,33

Before Change


        :type expectation: :class:`.ExpectationOverTransformations`
        
        super(UniversalPerturbation, self).__init__(classifier)
        kwargs = {"attacker": attacker,
                  "attacker_params": attacker_params,
                  "delta": delta,
                  "max_iter": max_iter,
                  "eps": eps,
                  "norm": norm,
                  "expectation": expectation
                  }
        self.set_params(**kwargs)

    def generate(self, x, **kwargs):
        

After Change


        
        :param classifier: A trained model.
        :type classifier: :class:`.Classifier`
        :param attacker: Adversarial attack name. Default is "deepfool". Supported names: "carlini", "carlini_inf",
                         "deepfool", "fgsm", "bim", "pgd", "margin", "ead", "newtonfool", "jsma", "vat".
        :type attacker: `str`
        :param attacker_params: Parameters specific to the adversarial attack.
        :type attacker_params: `dict`
        :param delta: desired accuracy
        :type delta: `float`
        :param max_iter: The maximum number of iterations for computing universal perturbation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a02b5c28b1ebe56bf5513d16aa6ef59d08ee28a5
Time: 2019-03-12
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/universal_perturbation.py
Class Name: UniversalPerturbation
Method Name: __init__


Project Name: facebookresearch/poincare-embeddings
Commit Name: 5f465041619a63bf1de99c55d1298865bf70fd9e
Time: 2020-01-07
Author: mattle@fb.com
File Name: embed.py
Class Name:
Method Name: async_eval


Project Name: senarvi/theanolm
Commit Name: 0375cb0a69852f21f19c8568b4a37128d4407fc0
Time: 2016-04-12
Author: seppo.git@marjaniemi.com
File Name: theanolm/layers/networkinput.py
Class Name: NetworkInput
Method Name: __init__