Skip to content

Commit 4cc1078

Browse files
committed
Comment out unused code
1 parent fee27b4 commit 4cc1078

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

notebooks_jason/max_of_K_all_models.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3615,22 +3615,22 @@ def do_linear_regression(X, Y):
36153615
min_flop = data["proof-flop-estimate"].min()
36163616
max_flop = data["proof-flop-estimate"].max()
36173617
data["group"] = data["group"].map(category_name_remap)
3618-
data["linestyle"] = ""
3619-
if include_baseline:
3620-
baseline_categories = [] # ["brute-force linear baseline"]
3621-
x_vals = np.logspace(np.log2(min_flop), np.log2(max_flop), 100, base=2)
3622-
y_vals = brute_force_slope * x_vals
3623-
baseline_df = pd.DataFrame(
3624-
{
3625-
"proof-flop-estimate": x_vals,
3626-
f"{norm}accuracy-bound": y_vals,
3627-
"group": "brute-force linear baseline",
3628-
"linestyle": "dotted",
3629-
}
3630-
)
3631-
# data = pd.concat([data, baseline_df], ignore_index=True)
3632-
else:
3633-
baseline_categories = []
3618+
# data["linestyle"] = ""
3619+
# if include_baseline:
3620+
# baseline_categories = [] # ["brute-force linear baseline"]
3621+
# x_vals = np.logspace(np.log2(min_flop), np.log2(max_flop), 100, base=2)
3622+
# y_vals = brute_force_slope * x_vals
3623+
# baseline_df = pd.DataFrame(
3624+
# {
3625+
# "proof-flop-estimate": x_vals,
3626+
# f"{norm}accuracy-bound": y_vals,
3627+
# "group": "brute-force linear baseline",
3628+
# "linestyle": "dotted",
3629+
# }
3630+
# )
3631+
# # data = pd.concat([data, baseline_df], ignore_index=True)
3632+
# else:
3633+
# baseline_categories = []
36343634
if (DISPLAY_PLOTS or SAVE_PLOTS) and SHARED_PLOTS:
36353635
markersize = (
36363636
plt.rcParams["lines.markersize"] / 8 if not frontier_only else None
@@ -3650,8 +3650,7 @@ def do_linear_regression(X, Y):
36503650
reverse_xaxis=False,
36513651
xaxis="FLOPs to Verify Proof (approximate)",
36523652
yaxis=f"{normt}Accuracy Bound",
3653-
color_order=baseline_categories
3654-
+ [category_name_remap[c] for c in category_order],
3653+
color_order=[category_name_remap[c] for c in category_order],
36553654
markersize=markersize,
36563655
discontinuous_x=discontinuous_x_val,
36573656
plot_with=PLOT_WITH,

0 commit comments

Comments
 (0)