Skip to content

Commit

Permalink
cifar10
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-jin committed May 14, 2018
1 parent 16a8e4a commit 5858cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autokeras/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ def search(self, x_train, y_train, x_test, y_test):

graph = Graph(model)
self.init_search_queue = []
for child_graph in transform(graph):
self.init_search_queue.append((child_graph, history_item['model_id']))
# for child_graph in transform(graph):
# self.init_search_queue.append((child_graph, history_item['model_id']))
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'))
Expand Down
3 changes: 2 additions & 1 deletion experiments/cifar10_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def select_gpu():
X = np.concatenate((x_train, x_test))
Y = np.concatenate((y_train, y_test))
trainer_args = {'max_iter_num': 0}
clf = ImageClassifier(searcher_type='bayesian', path='/Users/haifeng/cifar102', verbose=True, trainer_args=trainer_args)
clf = ImageClassifier(searcher_type='bayesian', path='/Users/haifeng/cifar102', verbose=True,
searcher_args={'trainer_args': {'max_iter_num': 0}, 'default_model_len': 10})

clf.fit(x_train, y_train, time_limit=12*60*60)
# clf.final_fit(x_train, y_train)
Expand Down

0 comments on commit 5858cf3

Please sign in to comment.