ba2ee501ca0dbdc799d857e0669f56bbac72dfa6,tests/classifiers/test_detector_classifier.py,TestDetectorClassifier,setUpClass,#Any#,69
Before Change
def setUpClass(cls):
(x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")
x_train = np.swapaxes(x_train, 1, 3)
x_test = np.swapaxes(x_test, 1, 3)
cls.x_train = x_train[:NB_TRAIN]
cls.y_train = y_train[:NB_TRAIN]
cls.x_test = x_test[:NB_TEST]
cls.y_test = y_test[:NB_TEST]
After Change
def setUpClass(cls):
(x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")
x_train = np.swapaxes(x_train, 1, 3).astype(np.float32)
x_test = np.swapaxes(x_test, 1, 3).astype(np.float32)
cls.x_train = x_train[:NB_TRAIN]
cls.y_train = y_train[:NB_TRAIN]
cls.x_test = x_test[:NB_TEST]
cls.y_test = y_test[:NB_TEST]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ba2ee501ca0dbdc799d857e0669f56bbac72dfa6
Time: 2019-09-05
Author: M.N.Tran@ibm.com
File Name: tests/classifiers/test_detector_classifier.py
Class Name: TestDetectorClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: e457fea04c7a04718139ba5086ea05e8a53f2c61
Time: 2019-09-08
Author: beat.buesser@ie.ibm.com
File Name: examples/get_started_pytorch.py
Class Name:
Method Name:
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a2adb05e101a2205c7c44525e5f36aaab14ec5ef
Time: 2019-09-03
Author: M.N.Tran@ibm.com
File Name: tests/classifiers/test_pytorch.py
Class Name: TestPyTorchClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ba2ee501ca0dbdc799d857e0669f56bbac72dfa6
Time: 2019-09-05
Author: M.N.Tran@ibm.com
File Name: tests/classifiers/test_detector_classifier.py
Class Name: TestDetectorClassifier
Method Name: setUpClass