68e50bfb8d717dc4b87faece5c270df424af357e,art/classifiers/GPy.py,GPyGaussianProcessClassifier,predict_uncertainty,#GPyGaussianProcessClassifier#Any#,157

Before Change


        // Apply preprocessing
        x_preprocessed, _ = self._apply_preprocessing(x, y=None, fit=False)

        return self.model.predict_noiseless(x_preprocessed)[1]

    def fit(self, x, y, **kwargs):
        
        Fit the classifier on the training set `(x, y)`.

After Change


        x_preprocessed, _ = self._apply_preprocessing(x, y=None, fit=False)

        // Perform prediction
        out = self.model.predict_noiseless(x_preprocessed)[1]

        // Apply postprocessing defences
        predictions = self._apply_postprocessing(preds=out, fit=False)

        return predictions

    def fit(self, x, y, **kwargs):
        
        Fit the classifier on the training set `(x, y)`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 68e50bfb8d717dc4b87faece5c270df424af357e
Time: 2020-02-07
Author: M.N.Tran@ibm.com
File Name: art/classifiers/GPy.py
Class Name: GPyGaussianProcessClassifier
Method Name: predict_uncertainty


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: e5f0e2c689c0da9497f9b49e7485ddf62771b6da
Time: 2020-02-07
Author: M.N.Tran@ibm.com
File Name: art/classifiers/lightgbm.py
Class Name: LightGBMClassifier
Method Name: predict


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 226ac881c2bd28468dacfe8838d0b9cd0373ccc0
Time: 2020-08-03
Author: ebube.chuba@ibm.com
File Name: art/estimators/embedding/keras.py
Class Name: KerasAdversarialEmbedding
Method Name: predict


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 8aefa34fe5fafbc11ef9900621f9c5a39b489cc2
Time: 2020-02-06
Author: M.N.Tran@ibm.com
File Name: art/classifiers/catboost.py
Class Name: CatBoostARTClassifier
Method Name: predict