445ef74d7b79bf8629e1eff92827b2df1bcdfbb4,models/sklearn_model.py,SklearnModel,predict,#SklearnModel#Any#,16

Before Change


        :param data: any type of input data
        :return: any type of predicted values
        
        raise NotImplementedError

    def _save(self):
        
        Save model to file.

After Change


        :return: predicted values
        
        X = self._gen_features(data)
        return self._estimator.predict(X)

    def _save(self):
        
        Save model to file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 445ef74d7b79bf8629e1eff92827b2df1bcdfbb4
Time: 2017-11-23
Author: ol.gure@gmail.com
File Name: models/sklearn_model.py
Class Name: SklearnModel
Method Name: predict


Project Name: tech-srl/code2vec
Commit Name: d976f418cc3b76e32f31af340c70e30acb609de2
Time: 2019-03-23
Author: eladnah@gmail.com
File Name: keras_model.py
Class Name: Code2VecModel
Method Name: predict


Project Name: ntucllab/libact
Commit Name: cb347641837feb9f651038c2f88317563a347627
Time: 2015-12-17
Author: yangarbiter@gmail.com
File Name: libact/models/svm.py
Class Name: SVM
Method Name: predict