8f40cea099e58ed670d6ba66dbffbca0c7399584,tests_pytorch/test_attacks.py,TestProjectedGradientMethod,test_targeted_adv_example_success_rate_l1,#TestProjectedGradientMethod#,167

Before Change


        eps=.5, eps_iter=.05, nb_iter=10)

  def test_targeted_adv_example_success_rate_l1(self):
    self.help_targeted_adv_examples_success_rate(
        model_fn=self.model, x=self.normalized_x, ord=1,
        eps=.5, eps_iter=.05, nb_iter=10)

  def test_adv_example_success_rate_l2(self):
    self.help_adv_examples_success_rate(
        model_fn=self.model, x=self.normalized_x, ord=2,

After Change



  def test_targeted_adv_example_success_rate_l1(self):
    try:
      self.help_targeted_adv_examples_success_rate(
          ord=1, eps=.5, clip_min=-5, clip_max=5, eps_iter=.05, nb_iter=20)
    except NotImplementedError:
      raise SkipTest()

  def test_adv_example_success_rate_l2(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/cleverhans
Commit Name: 8f40cea099e58ed670d6ba66dbffbca0c7399584
Time: 2019-04-30
Author: michaelshiyu3@gmail.com
File Name: tests_pytorch/test_attacks.py
Class Name: TestProjectedGradientMethod
Method Name: test_targeted_adv_example_success_rate_l1


Project Name: tensorflow/cleverhans
Commit Name: 8cc2345931fd07b32b7e4bb7e8f88b62d2224117
Time: 2019-05-06
Author: michaelshiyu3@gmail.com
File Name: tests_pytorch/test_attacks.py
Class Name: TestProjectedGradientMethod
Method Name: test_targeted_adv_example_success_rate_l2


Project Name: tensorflow/cleverhans
Commit Name: 8cc2345931fd07b32b7e4bb7e8f88b62d2224117
Time: 2019-05-06
Author: michaelshiyu3@gmail.com
File Name: tests_pytorch/test_attacks.py
Class Name: TestProjectedGradientMethod
Method Name: test_targeted_adv_example_success_rate_l1