Skip to content

Commit

Permalink
mixed and confused search deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
王悦凝 authored and 王悦凝 committed Apr 17, 2019
1 parent 3ced784 commit e5d6ed8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neuralizer/model_search_very_simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ def model_search(data,test_fraction,random_state,params,cumulative_time = 0.0,re
activation_functions = params["activation_functions"]
units = params["units"]
hidden_layers = params["hidden_layers"]
options= make_combo(option1=activation_functions,option2=units)
af_combs = make_pairwise_list(max_depth=layers, options=options)

if os.path.exists("./list.json"):
y2 = pr.check_read("list.json")
best_list = y2["best_list"]
Expand All @@ -82,6 +81,8 @@ def model_search(data,test_fraction,random_state,params,cumulative_time = 0.0,re
for layers in hidden_layers:
iteration_n = 1
iteration_l = 0
options= make_combo(option1=activation_functions,option2=units)
af_combs = make_pairwise_list(max_depth=layers, options=options)
if restart:
y1 = pr.check_read("latest.json")
starting_n = y1["starting_n"]
Expand Down

0 comments on commit e5d6ed8

Please sign in to comment.