Skip to content

Commit

Permalink
Number of iterations left was recalculated
Browse files Browse the repository at this point in the history
  • Loading branch information
王悦凝 authored and 王悦凝 committed Apr 17, 2019
1 parent 6dad2a3 commit debe256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions neuralizer/model_search_very_simplified.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def model_search(data,test_fraction,random_state,params,cumulative_time = 0.0,re
total_iteration = 0
for i in hidden_layers:
total_iteration += (len(units)*len(activation_functions))**(i+1)*len(activation_functions)
print(f"Total number of iterations needed is {total_iteration}")

for layers in hidden_layers:
iteration_n = 1
Expand Down Expand Up @@ -106,12 +105,13 @@ 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)

pass
elif layers == layer_num:
while run_once == 0 and not iteration_n > starting_n:
iteration_n += 1
iteration_l += 1

total_iteration -= iteration_l
print(f"Now total iteration left is {total_iteration}")
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 debe256

Please sign in to comment.