Skip to content

Commit

Permalink
Situation in loop changed
Browse files Browse the repository at this point in the history
  • Loading branch information
王悦凝 authored and 王悦凝 committed Apr 20, 2019
1 parent 47a7e6a commit aa3fb3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neuralizer/model_search_very_simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def model_search(data,test_fraction,random_state,params,cumulative_time = 0.0,re

if layers < layer_num:
iteration_l += (len(units)*len(activation_functions))**(layers+1)*len(activation_functions)
total_iteration -= iteration_l
pass
else:
if run_once ==0 and not iteration_n > starting_n:
Expand All @@ -115,7 +116,7 @@ def model_search(data,test_fraction,random_state,params,cumulative_time = 0.0,re
print(f"total_iteration left is {total_iteration}")
pass

else:
elif (run_once ==0 and iteration_n > starting_n) or run_once == 1:
inner_iterations = (len(units)*len(activation_functions))**layers
for inner_iteration in range(inner_iterations):
for option_in in options:
Expand Down

0 comments on commit aa3fb3f

Please sign in to comment.