Skip to content

Commit 1cbdc98

Browse files
committed
adapt monte carlo experiment results pickle file paths
1 parent 106399d commit 1cbdc98

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

experimental/notebooks/monte-carlo-experiments.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,10 @@
510510
"\n",
511511
" print(f\"Estimation error measures: {estimation_error[m_candidate][l_candidate][rep_key]} \\n\")\n",
512512
"\n",
513-
" with open(f\"results/estimate_prob_random_walk_method.pkl\", \"wb\") as file:\n",
513+
" with open(f\"results/measurements/estimate_prob_random_walk_method.pkl\", \"wb\") as file:\n",
514514
" pickle.dump(estimation_error, file, protocol=pickle.HIGHEST_PROTOCOL)\n",
515515
"else:\n",
516-
" with open(f\"results/estimate_prob_random_walk_method.pkl\", \"rb\") as file:\n",
516+
" with open(f\"results/measurements/estimate_prob_random_walk_method.pkl\", \"rb\") as file:\n",
517517
" estimation_error = pickle.load(file)"
518518
]
519519
},
@@ -719,10 +719,10 @@
719719
"\n",
720720
" print(f\"Estimation error measures: {estimation_error[c_candidate][tau_candidate][rep_key]} \\n\")\n",
721721
"\n",
722-
" with open(f\"results/estimate_prob_pi_method.pkl\", \"wb\") as file:\n",
722+
" with open(f\"results/measurements/estimate_prob_pi_method.pkl\", \"wb\") as file:\n",
723723
" pickle.dump(estimation_error, file, protocol=pickle.HIGHEST_PROTOCOL)\n",
724724
"else:\n",
725-
" with open(f\"results/estimate_prob_pi_method.pkl\", \"rb\") as file:\n",
725+
" with open(f\"results/measurements/estimate_prob_pi_method.pkl\", \"rb\") as file:\n",
726726
" estimation_error = pickle.load(file)"
727727
]
728728
},
@@ -866,9 +866,9 @@
866866
"metadata": {},
867867
"outputs": [],
868868
"source": [
869-
"plt.plot(small_tau_c_run_times.keys(), small_tau_c_run_times.values(), color=\"blue\", label=\"tau = 1e-5\")\n",
870-
"plt.plot(medium_tau_c_run_times.keys(), medium_tau_c_run_times.values(), color=\"green\", label=\"tau = 1e-3\")\n",
871-
"plt.plot(large_tau_c_run_times.keys(), large_tau_c_run_times.values(), color=\"red\", label=\"tau = 1e-1\")\n",
869+
"plt.plot(small_tau_c_run_times.keys(), small_tau_c_run_times.values(), color=\"blue\", label=f\"tau = {small_tau}\")\n",
870+
"plt.plot(medium_tau_c_run_times.keys(), medium_tau_c_run_times.values(), color=\"green\", label=f\"tau = {round(medium_tau,3)}\")\n",
871+
"plt.plot(large_tau_c_run_times.keys(), large_tau_c_run_times.values(), color=\"red\", label=f\"tau = {large_tau}\")\n",
872872
"\n",
873873
"\n",
874874
"plt.legend(loc=\"upper right\")\n",

0 commit comments

Comments
 (0)