390c2da66962c48403d1cebe56c7b8b3e1843893,autokeras/cnn_module.py,CnnModule,final_fit,#CnnModule#Any#Any#Any#Any#,64

Before Change


            test_data: A DataLoader instance representing the testing data

        
        searcher = self._load_searcher()
        graph = searcher.load_best_model()

        if retrain:
            graph.weighted = False

After Change


            elif self.verbose:
                print("Time is out.")

    def final_fit(self, train_data, test_data, trainer_args=None, retrain=False):
        Final training after found the best architecture.

        Args:
            trainer_args: A dictionary containing the parameters of the ModelTrainer constructor.
            retrain: A boolean of whether reinitialize the weights of the model.
            train_data: A DataLoader instance representing the training data
            test_data: A DataLoader instance representing the testing data

        
        graph = self.searcher.load_best_model()

        if retrain:
            graph.weighted = False
        _, _1, graph = train(q=None, args=(graph,
                                           train_data,
                                           test_data,
                                           trainer_args,
                                           self.metric,
                                           self.loss,
                                           self.verbose,
                                           self.path))
        self.searcher.replace_model(graph, self.searcher.get_best_model_id())
        pickle_to_file(self, os.path.join(self.path, "module"))

    @property
    def best_model(self):
        return self.searcher.load_best_model()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: keras-team/autokeras
Commit Name: 390c2da66962c48403d1cebe56c7b8b3e1843893
Time: 2018-11-13
Author: jhfjhfj1@gmail.com
File Name: autokeras/cnn_module.py
Class Name: CnnModule
Method Name: final_fit


Project Name: keras-team/autokeras
Commit Name: 390c2da66962c48403d1cebe56c7b8b3e1843893
Time: 2018-11-13
Author: jhfjhfj1@gmail.com
File Name: autokeras/cnn_module.py
Class Name: CnnModule
Method Name: fit


Project Name: jhfjhfj1/autokeras
Commit Name: 390c2da66962c48403d1cebe56c7b8b3e1843893
Time: 2018-11-13
Author: jhfjhfj1@gmail.com
File Name: autokeras/cnn_module.py
Class Name: CnnModule
Method Name: final_fit