Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrantq committed Oct 23, 2024
1 parent ef3bda4 commit ea1a4d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions experiments/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def plot_results(
)
if example_adjusted_runtime is not None:
line2 = ax1.axhline(
y=example_adjusted_runtime, color=color_runtime, linestyle=":", label="Original Runtime"
y=example_adjusted_runtime, color=color_runtime, linestyle="--", label="Original Runtime"
)
ax1.tick_params(axis="y", labelcolor=color_runtime)

Expand All @@ -401,7 +401,7 @@ def plot_results(
budgets, errors, marker="s", linestyle="-", label="Optimized Relative Errors", color=color_error
)
if example_rel_err is not None:
line4 = ax2.axhline(y=example_rel_err, color=color_error, linestyle=":", label="Original Relative Error")
line4 = ax2.axhline(y=example_rel_err, color=color_error, linestyle="--", label="Original Relative Error")
ax2.tick_params(axis="y", labelcolor=color_error)
ax2.set_yscale("log")

Expand Down Expand Up @@ -510,7 +510,7 @@ def plot_results(
)
if example_adjusted_runtime is not None:
line2 = ax1.axhline(
y=example_adjusted_runtime, color=color_runtime, linestyle=":", label="Original Runtime"
y=example_adjusted_runtime, color=color_runtime, linestyle="--", label="Original Runtime"
)
ax1.tick_params(axis="y", labelcolor=color_runtime)

Expand All @@ -521,7 +521,7 @@ def plot_results(
budgets, errors, marker="s", linestyle="-", label="Optimized Relative Errors", color=color_error
)
if example_rel_err is not None:
line4 = ax2.axhline(y=example_rel_err, color=color_error, linestyle=":", label="Original Relative Error")
line4 = ax2.axhline(y=example_rel_err, color=color_error, linestyle="--", label="Original Relative Error")
ax2.tick_params(axis="y", labelcolor=color_error)
ax2.set_yscale("log")

Expand Down Expand Up @@ -800,7 +800,7 @@ def analyze_all_data(tmp_dir, thresholds=None):
for threshold in thresholds:
if err <= threshold * 100:
runtime_ratio = runtime / example_adjusted_runtime
runtime_ratios_per_threshold[threshold].append(runtime_ratio)
runtime_ratios_per_threshold[threshold].append(runtime_ratio) # Problematic!

overall_runtime_improvements = {}
for threshold in thresholds:
Expand Down

0 comments on commit ea1a4d8

Please sign in to comment.