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:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: pytorch/text
Commit Name: eb0d24b0b118565c6cf528b8bbf3fb16012df4d6
Time: 2019-07-24
Author: jahojiang@gmail.com
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromJSON