cf73f9fd2638c07e0bddefb9ab918486067c4e80,finetune/target_models/deployment_model.py,DeploymentModel,predict,#DeploymentModel#Any#Any#Any#,177

Before Change


        if exclude_target: //to initialize featurizer weights
            return features

        self.target_est = self.get_estimator("target")
        preds = None
        if features is not None:
            target_est = self.get_estimator("target")
            target_fn = self.input_pipeline.get_target_input_fn(features)

After Change


        features = [None]*n
        for i in tqdm.tqdm(range(n), total=n, desc="Featurization"):
            y = next(self._predictions)
            for key in y:
                print(np.shape(y[key]))
            features[i] = y

        if exclude_target: //to initialize featurizer weights
            return features
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: cf73f9fd2638c07e0bddefb9ab918486067c4e80
Time: 2019-06-20
Author: matthew.bayer@indico.io
File Name: finetune/target_models/deployment_model.py
Class Name: DeploymentModel
Method Name: predict


Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run1


Project Name: IndicoDataSolutions/finetune
Commit Name: 1cbe695f7e05ec94df08b821a81475a7647d53b6
Time: 2019-06-20
Author: matthew.bayer@indico.io
File Name: finetune/target_models/deployment_model.py
Class Name: DeploymentModel
Method Name: predict