0f100b908573bdff46341e3d0766359a72bb0060,art/attacks/evasion/wasserstein.py,Wasserstein,_generate_batch,#Wasserstein#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,210

Before Change


        if targeted:
            err = get_labels_np_array(self.estimator.predict(x, batch_size=batch_size)) == targets
        else:
            err = get_labels_np_array(self.estimator.predict(x, batch_size=batch_size)) != targets

        err_best = err
        eps = np.ones(batch_size) * eps

After Change


                )
            else:
                err = (
                    np.argmax(self.estimator.predict(adv_x, batch_size=batch_size), axis=1)
                    != np.argmax(targets, axis=1)
                )

            if np.mean(err) > np.mean(err_best):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 0f100b908573bdff46341e3d0766359a72bb0060
Time: 2020-05-19
Author: M.N.Tran@ibm.com
File Name: art/attacks/evasion/wasserstein.py
Class Name: Wasserstein
Method Name: _generate_batch


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 349ac0c5797503e22370ced84270b9b28bdff342
Time: 2018-07-09
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/defences/adversarial_trainer.py
Class Name: AdversarialTrainer
Method Name: fit


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 79ee6153cee9c16191e3d6ad4be54a8205ed5ed0
Time: 2017-07-12
Author: valentina.zantedeschi@ibm.com
File Name: src/attackers/deepfool_unittest.py
Class Name: TestDeepFool
Method Name: test_mnist