7f6852042663cb04bab39253a29e48d81c262e28,finetune/base.py,BaseModel,_featurize,#BaseModel#Any#,395

Before Change


        self.mode = PredictMode.PROBAS
        estimator = self.get_estimator()
        input_func = self._get_predict_input_fn(Xs)
        pred_gen = estimator.predict(input_fn=input_func, predict_keys=self.mode)
        return list(pred_gen)

    @abstractmethod
    def featurize(self, *args, **kwargs):

After Change



    def _featurize(self, Xs):
        raw_preds = self._inferrence(Xs, PredictMode.FEATURIZE)
        return np.asarray(raw_preds)

    @abstractmethod
    def featurize(self, *args, **kwargs):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 7f6852042663cb04bab39253a29e48d81c262e28
Time: 2018-09-25
Author: benlt@hotmail.co.uk
File Name: finetune/base.py
Class Name: BaseModel
Method Name: _featurize


Project Name: scikit-learn-contrib/DESlib
Commit Name: bba1901f835525551dde9ec1537d041abc88d293
Time: 2021-04-08
Author: rafaelmenelau@gmail.com
File Name: deslib/static/oracle.py
Class Name: Oracle
Method Name: predict


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: aea64165af39d2e762e386f02e23a8b746b9a1aa
Time: 2020-04-17
Author: saulomastelini@gmail.com
File Name: src/skmultiflow/meta/adaptive_random_forest_regressor.py
Class Name: AdaptiveRandomForestRegressor
Method Name: partial_fit