a8eabdad14eee8a47257248fa271700fcce939cb,autokeras/search.py,BayesianSearcher,search,#BayesianSearcher#Any#Any#Any#Any#,159

Before Change


            self.search_tree.add_child(-1, history_item["model_id"])
            self.gpr.first_fit(Graph(model).extract_descriptor(), history_item["accuracy"])
            pickle_to_file(self, os.path.join(self.path, "searcher"))
            del model
            backend.clear_session()

        else:
            model_ids = self.search_tree.get_leaves()

After Change


            history_item = self.add_model(model, x_train, y_train, x_test, y_test, constant.SEARCH_MAX_ITER)
            self.init_gpr_x.append(graph.extract_descriptor())
            self.init_gpr_y.append(history_item["accuracy"])
            pickle_to_file(self, os.path.join(self.path, "searcher"))
            return

        if not self.init_search_queue and not self.gpr.first_fitted:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: a8eabdad14eee8a47257248fa271700fcce939cb
Time: 2018-05-01
Author: jhfjhfj1@gmail.com
File Name: autokeras/search.py
Class Name: BayesianSearcher
Method Name: search


Project Name: facebook/FAI-PEP
Commit Name: c68815a01e04ad21d0128b53235ab1bd915b6c6a
Time: 2018-09-07
Author: sf_wind@hotmail.com
File Name: benchmarking/platforms/ios/ios_platform.py
Class Name: IOSPlatform
Method Name: preprocess