fdf91a85cc868ff50b97c790fde279b7ad8858c8,art/classifiers/tensorflow.py,TFClassifier,fit,#TFClassifier#Any#Any#Any#Any#,121

Before Change


            raise ValueError("Need the training objective and the output placeholder to train the model.")

        // Apply defences
        x_preproc = self._apply_processing(x)
        x_preproc, y_preproc = self._apply_defences(x_preproc, y, fit=True)

        num_batch = int(np.ceil(len(x_preproc) / float(batch_size)))
        ind = np.arange(len(x_preproc))

After Change


            raise ValueError("Need the training objective and the output placeholder to train the model.")

        // Apply defences
        x_defences, y_defences, _ = self._apply_preprocessing(x, y, fit=True)

        num_batch = int(np.ceil(len(x_defences) / float(batch_size)))
        ind = np.arange(len(x_defences))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: fdf91a85cc868ff50b97c790fde279b7ad8858c8
Time: 2019-06-12
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/tensorflow.py
Class Name: TFClassifier
Method Name: fit


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ebcac6bc2c725ca21e56d5459fa39086b40a3036
Time: 2019-06-12
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/keras.py
Class Name: KerasClassifier
Method Name: fit


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a92f9f936f70ec90ffdc7fdeef1d0fc1d30d2c68
Time: 2019-06-12
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/mxnet.py
Class Name: MXClassifier
Method Name: fit


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ebcac6bc2c725ca21e56d5459fa39086b40a3036
Time: 2019-06-12
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/classifier.py
Class Name: Classifier
Method Name: fit_generator


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 6874e3b7b95af511f1cebcc38822fb54a5a318ec
Time: 2019-06-12
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/pytorch.py
Class Name: PyTorchClassifier
Method Name: fit