b1bfd16945a658d02847209e46a2ba8d72b456e1,autokeras/auto/auto_model.py,GraphAutoModel,predict,#GraphAutoModel#Any#,192

Before Change



    def predict(self, x, **kwargs):
        Predict the output for a given testing data. 
        return self.tuner.get_best_models(1)[0].predict(x, **kwargs)

    def _get_metrics(self):
        metrics = []
        for metrics_list in [output_node.in_hypermodels[0].metrics for

After Change


    def predict(self, x, **kwargs):
        Predict the output for a given testing data. 
        x = self.preprocess(self.tuner.get_best_models(1), x)
        y = self.tuner.get_best_models(1)[0].predict(x, **kwargs)
        y = layer_utils.format_inputs(y, self.name)
        y = self._postprocess(y)
        if len(y) == 1:
            y = y[0]
        return y

    def _get_metrics(self):
        metrics = []
        for metrics_list in [output_node.in_hypermodels[0].metrics for
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/auto/auto_model.py
Class Name: GraphAutoModel
Method Name: predict


Project Name: IndicoDataSolutions/finetune
Commit Name: 5dcab7fe656e8a4b15ffa26c68b8bbd261bca816
Time: 2021-02-19
Author: rahil.dedhia@indico.io
File Name: finetune/target_models/sequence_labeling.py
Class Name: SequenceLabeler
Method Name: predict