Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Feb 4, 2024
1 parent d567850 commit 8abe241
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/plotting/backup_orlando.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
if __name__ == '__main__':
apple_b_line_256_id = 6
apple_meander_256_id = 7
cardiff_b_line_64_id = 120
cardiff_meander_64_id = 121
cardiff_b_line_64_id = 222
# cardiff_meander_64_id = 121
# experiment_apple_bline_256 = MetastoreFacade.get_experiment_execution(id=apple_b_line_256_id)
# experiment_apple_meander_256 = MetastoreFacade.get_experiment_execution(id=apple_meander_256_id)
experiment_cardiff_b_line_64 = MetastoreFacade.get_experiment_execution(id=cardiff_b_line_64_id)
experiment_cardiff_meander_64 = MetastoreFacade.get_experiment_execution(id=cardiff_meander_64_id)
# experiment_cardiff_meander_64 = MetastoreFacade.get_experiment_execution(id=cardiff_meander_64_id)

# experiment_apple_bline_256.to_json_file("/home/kim/orlando_results/15_jan/apple_b_line_256.json")
# experiment_apple_meander_256.to_json_file("/home/kim/orlando_results/15_jan/apple_meander_256.json")
Expand All @@ -19,10 +19,10 @@
metric = "average_return"
returns = []
confidence = 0.95
running_avg = 30
seeds = list(experiment_cardiff_meander_64.result.all_metrics.keys())
running_avg = 50
seeds = list(experiment_cardiff_b_line_64.result.all_metrics.keys())
for seed in seeds:
r = PlottingUtil.running_average(experiment_cardiff_meander_64.result.all_metrics[seed][metric], running_avg)
r = PlottingUtil.running_average(experiment_cardiff_b_line_64.result.all_metrics[seed][metric], running_avg)
print(r[101])
returns.append(r)
avg_returns_means = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def update_tree_with_new_samples(self, action_sequence: List[int], observation:
o = info[constants.COMMON.OBSERVATION]
if o == observation:
particles.append(s_prime)
count = 0
else:
count += 1
if count >= 20000:
Expand Down

0 comments on commit 8abe241

Please sign in to comment.