7679bdc57a29f1195e1b11b6b140abd559ae8dea,art/classifiers/wrapper_unittest.py,TestMixinWKerasClassifier,test_layers,#TestMixinWKerasClassifier#,237
Before Change
self.assertTrue(keras_model._output.name, "output0")
def test_layers(self):
self._test_layers(custom_activation=False)
self._test_layers(custom_activation=True)
def _test_layers(self, custom_activation=False):
// Get MNIST
After Change
def test_layers(self):
// Get MNIST
(_, _), (x_test, _), _, _ = load_mnist()
x_test = x_test[:NB_TEST]
classifier = ClassifierWrapper(self.model_mnist)
self.assertEqual(len(classifier.layer_names), 3)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 7679bdc57a29f1195e1b11b6b140abd559ae8dea
Time: 2019-03-08
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/wrapper_unittest.py
Class Name: TestMixinWKerasClassifier
Method Name: test_layers
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 34c9172185fc79e6a971919f910fbbb7e945f5e5
Time: 2019-03-08
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/keras_unittest.py
Class Name: TestKerasClassifier
Method Name: test_layers
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 7eb6dda2eacee748a3c0ee83c54326e2b6153488
Time: 2018-11-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/ensemble_unittest.py
Class Name: TestEnsembleClassifier
Method Name: test_layers