869ab9da1386db9ece86be733e319ad0ad56ff53,art/attacks/iterative_method_unittest.py,TestIterativeAttack,setUpClass,#Any#,22
Before Change
k.set_learning_phase(1)
// Get MNIST
(x_train, y_train), (x_test, y_test), _, _ = load_mnist()
x_train, y_train, x_test, y_test = x_train[:NB_TRAIN], y_train[:NB_TRAIN], x_test[:NB_TEST], y_test[:NB_TEST]
cls.mnist = (x_train, y_train), (x_test, y_test)
// Keras classifier
After Change
k.set_learning_phase(1)
// Get MNIST
(x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")
x_train, y_train, x_test, y_test = x_train[:NB_TRAIN], y_train[:NB_TRAIN], x_test[:NB_TEST], y_test[:NB_TEST]
cls.mnist = (x_train, y_train), (x_test, y_test)
// Keras classifier
In pattern: SUPERPATTERN
Frequency: 19
Non-data size: 2
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/iterative_method_unittest.py
Class Name: TestIterativeAttack
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/universal_perturbation_unittest.py
Class Name: TestUniversalPerturbation
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/newtonfool_unittest.py
Class Name: TestNewtonFool
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/boundary_unittest.py
Class Name: TestBoundary
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/deepfool_unittest.py
Class Name: TestDeepFool
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c8218ddaeb7b03fa38810d65d25664e32c0a572f
Time: 2019-05-15
Author: Maria-Irina.Nicolae@ibm.com
File Name: tests/wrappers/test_expectation.py
Class Name: TestExpectationOverTransformations
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/elastic_net_unittest.py
Class Name: TestElasticNet
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/carlini_unittest.py
Class Name: TestCarliniL2
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/projected_gradient_descent_unittest.py
Class Name: TestPGD
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/fast_gradient_unittest.py
Class Name: TestFastGradientMethod
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/zoo_unittest.py
Class Name: TestZooAttack
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ae3b0c965de92347b0c0be08aa29df0215572f89
Time: 2019-08-19
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_ensemble.py
Class Name: TestEnsembleClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c8a9b2b2f14226567f2e1b42e7cf007b38c0fba3
Time: 2019-08-19
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_pytorch.py
Class Name: TestPyTorchClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/saliency_map_unittest.py
Class Name: TestSaliencyMap
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 63d46b47ff64c9e93ed4c1698ffa955a00d2925e
Time: 2019-08-27
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_detector_classifier.py
Class Name: TestDetectorClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: c8218ddaeb7b03fa38810d65d25664e32c0a572f
Time: 2019-05-15
Author: Maria-Irina.Nicolae@ibm.com
File Name: tests/wrappers/test_query_efficient_bb.py
Class Name: TestWrappingClassifierAttack
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 869ab9da1386db9ece86be733e319ad0ad56ff53
Time: 2019-05-10
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/virtual_adversarial_unittest.py
Class Name: TestVirtualAdversarial
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 24cc9536e4969716b3080498426af8e47dee7907
Time: 2019-08-17
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_tensorflow.py
Class Name: TestTFClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 34def3f2e9b2933f16670eeeabd4b080fce9cd80
Time: 2019-08-17
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_keras.py
Class Name: TestKerasClassifier
Method Name: setUpClass