66c20cc2157d7f18530c742ce6d71685f8699020,tests/classifiers/test_ensemble.py,TestEnsembleClassifier,setUpClass,#Any#,39
Before Change
def setUpClass(cls):
k.clear_session()
( x_train, y_train), (x_test, y_test), _, _ = load_dataset("mnist")
cls.x_train = x_train[:NB_TRAIN]
cls.y_train = y_train[:NB_TRAIN]
After Change
@classmethod
def setUpClass(cls):
super().setUpClass()
// Use twice the same classifier for unit-testing, in application they would be different
classifier_1 = get_classifier_kr()
classifier_2 = get_classifier_kr()
In pattern: SUPERPATTERN
Frequency: 11
Non-data size: 9
Instances Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
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: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierBoosterSoftprob
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_lightgbm.py
Class Name: TestLightGBMClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_keras.py
Class Name: TestKerasClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_blackbox.py
Class Name: TestBlackBoxClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierPythonAPI
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_xgboost.py
Class Name: TestXGBoostClassifierBoosterSoftmax
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_keras_tf.py
Class Name: TestKerasClassifierTF
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 67c6996fef4d18a4b271a2f02494663b07c35fb6
Time: 2020-02-26
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_input_filter.py
Class Name: TestInputFilter
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 66c20cc2157d7f18530c742ce6d71685f8699020
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/classifiers/test_GPy.py
Class Name: TestGPyGaussianProcessClassifier
Method Name: setUpClass
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 9e35d1e5ebdf1c379b6c84c642fa164a9fa22d9a
Time: 2020-01-16
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_hclu.py
Class Name: TestHCLU
Method Name: setUpClass