b1bfd16945a658d02847209e46a2ba8d72b456e1,autokeras/auto/auto_model.py,GraphAutoModel,predict,#GraphAutoModel#,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: 4

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: dmlc/gluon-cv
Commit Name: c9771804f1fcc6b2e67fadb94eaeff4f42b20f0a
Time: 2019-11-02
Author: thom.e.lane@gmail.com
File Name: gluoncv/model_zoo/deeplabv3.py
Class Name: DeepLabV3
Method Name: demo


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: keras-team/keras
Commit Name: c074416c9a0731c1f55c2f6ba200b4459dbcd4ba
Time: 2019-08-21
Author: francois.chollet@gmail.com
File Name: keras/wrappers/scikit_learn.py
Class Name: KerasRegressor
Method Name: predict


Project Name: dmlc/gluon-cv
Commit Name: 384f30e1b7bf73abbb148407c717f6eb4be0c255
Time: 2019-09-03
Author: yizhu59@gmail.com
File Name: gluoncv/model_zoo/pspnet.py
Class Name: PSPNet
Method Name: demo