Skip to content

Commit

Permalink
Added success rate saving metric to curriculum_learner
Browse files Browse the repository at this point in the history
  • Loading branch information
chitwansaharia committed Oct 1, 2018
1 parent 4527d29 commit 7254f04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/curriculum_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def main(args, graphs):

total_start_time = time.time()

best_mean_return, patience = 0, 0
best_success_rate, patience = 0, 0
current_num_evaluate, total_len, current_number_batch, fps = 0, 1, 0, []

# Log dictionary
Expand Down Expand Up @@ -294,8 +294,8 @@ def main(args, graphs):
csv_writer.writerow(train_data + validation_data + rest_data)


if mean_return_all_task > best_mean_return:
best_mean_return = mean_return_all_task
if success_rate_all_task > best_success_rate:
best_success_rate = success_rate_all_task
status['patience'] = 0
with open(status_path, 'w') as dst:
json.dump(status, dst)
Expand Down

0 comments on commit 7254f04

Please sign in to comment.