a6f8711741a919e5ed2455f893ff8c30febabd68,tests/attacks/test_backdoor_attack.py,TestBackdoorAttack,poison_func_4,#TestBackdoorAttack#Any#,100

Before Change


        )

    def poison_func_4(self, x):
        return np.expand_dims(
            insert_image(x.squeeze(3), backdoor_path=self.backdoor_path, size=(5, 5), random=True), axis=3
        )

    def poison_func_5(self, x):
        return np.expand_dims(
            insert_image(x.squeeze(3), backdoor_path=self.backdoor_path, random=True, size=(100, 100)), axis=3

After Change


        return insert_image(x, backdoor_path=self.backdoor_path, size=(5, 5), random=False, x_shift=3, y_shift=3)

    def poison_func_4(self, x):
        return insert_image(x, backdoor_path=self.backdoor_path, size=(5, 5), random=True)

    def poison_func_5(self, x):
        return insert_image(x, backdoor_path=self.backdoor_path, random=True, size=(100, 100))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a6f8711741a919e5ed2455f893ff8c30febabd68
Time: 2021-02-22
Author: ebube.chuba@ibm.com
File Name: tests/attacks/test_backdoor_attack.py
Class Name: TestBackdoorAttack
Method Name: poison_func_4


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a6f8711741a919e5ed2455f893ff8c30febabd68
Time: 2021-02-22
Author: ebube.chuba@ibm.com
File Name: tests/attacks/test_backdoor_attack.py
Class Name: TestBackdoorAttack
Method Name: poison_func_5


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a6f8711741a919e5ed2455f893ff8c30febabd68
Time: 2021-02-22
Author: ebube.chuba@ibm.com
File Name: tests/attacks/test_backdoor_attack.py
Class Name: TestBackdoorAttack
Method Name: poison_func_3