12fac3a0ecc05215985c6b42b39447a3f2e04c0c,autokeras/search.py,RandomSearcher,search,#RandomSearcher#Any#Any#Any#Any#,99

Before Change


        while self.model_count < constant.MAX_MODEL_NUM:
            model = RandomConvClassifierGenerator(self.n_classes, self.input_shape).generate()
            self.add_model(model, x_train, y_train, x_test, y_test)
            pickle.dump(self, open(os.path.join(self.path, "searcher"), "wb"))
            backend.clear_session()

        return self.load_best_model()

After Change


        while self.model_count < constant.MAX_MODEL_NUM:
            model = RandomConvClassifierGenerator(self.n_classes, self.input_shape).generate()
            self.add_model(model, x_train, y_train, x_test, y_test)
            pickle_to_file(self, os.path.join(self.path, "searcher"))
            backend.clear_session()

        return self.load_best_model()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/autokeras
Commit Name: 12fac3a0ecc05215985c6b42b39447a3f2e04c0c
Time: 2018-04-06
Author: jin@tamu.edu
File Name: autokeras/search.py
Class Name: RandomSearcher
Method Name: search


Project Name: keras-team/autokeras
Commit Name: 12fac3a0ecc05215985c6b42b39447a3f2e04c0c
Time: 2018-04-06
Author: jin@tamu.edu
File Name: autokeras/search.py
Class Name: BayesianSearcher
Method Name: search


Project Name: keras-team/autokeras
Commit Name: 12fac3a0ecc05215985c6b42b39447a3f2e04c0c
Time: 2018-04-06
Author: jin@tamu.edu
File Name: autokeras/search.py
Class Name: HillClimbingSearcher
Method Name: search