761e760651f7381c8bde06b2b3a00a93decde180,art/visualization_unittest.py,TestVisualization,test_save_image,#TestVisualization#,16

Before Change


class TestVisualization(unittest.TestCase):

    def test_save_image(self):
        (x, _), (_, _), _, _ = load_mnist_raw()

        f_name = "image1.png"
        save_image(x[0], f_name)
        path = os.path.join(DATA_PATH, f_name)

After Change


class TestVisualization(unittest.TestCase):

    def test_save_image(self):
        (x, _), (_, _), _, _ = load_mnist(raw=True)

        f_name = "image1.png"
        save_image(x[0], f_name)
        path = os.path.join(DATA_PATH, f_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 761e760651f7381c8bde06b2b3a00a93decde180
Time: 2018-09-24
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/visualization_unittest.py
Class Name: TestVisualization
Method Name: test_save_image


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 761e760651f7381c8bde06b2b3a00a93decde180
Time: 2018-09-24
Author: Maria-Irina.Nicolae@ibm.com
File Name: examples/mnist_poison_detection.py
Class Name:
Method Name: main


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 761e760651f7381c8bde06b2b3a00a93decde180
Time: 2018-09-24
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/visualization_unittest.py
Class Name: TestVisualization
Method Name: test_convert_gray_to_rgb


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 761e760651f7381c8bde06b2b3a00a93decde180
Time: 2018-09-24
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/visualization_unittest.py
Class Name: TestVisualization
Method Name: test_sprites_gray