Skip to content

Commit

Permalink
distributed mixed_poisson in work
Browse files Browse the repository at this point in the history
  • Loading branch information
niravshah241 committed Jul 19, 2024
1 parent 6ada63d commit 1c3ab14
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ def generate_ann_output_set_sigma(problem, reduced_problem, input_set,
training_loss = list()
validation_loss = list()

max_epochs_sigma = 2 # 20000
max_epochs_sigma = 5 # 20000
min_validation_loss_sigma = None
start_epoch_sigma = 0
checkpoint_epoch_sigma = 10
Expand All @@ -691,7 +691,7 @@ def generate_ann_output_set_sigma(problem, reduced_problem, input_set,
optimiser_sigma)

import time
start_time = time.time()
start_time = time.process_time()
for epochs in range(start_epoch_sigma, max_epochs_sigma):
if epochs > 0 and epochs % checkpoint_epoch_sigma == 0:
save_checkpoint(checkpoint_path_list_sigma[j], epochs,
Expand All @@ -715,7 +715,7 @@ def generate_ann_output_set_sigma(problem, reduced_problem, input_set,
print(f"Early stopping criteria invoked at epoch: {epochs+1}")
break
min_validation_loss = min(validation_loss)
end_time = time.time()
end_time = time.process_time()
elapsed_time = end_time - start_time

os.system(f"rm {checkpoint_path_list_sigma[j]}")
Expand Down

0 comments on commit 1c3ab14

Please sign in to comment.