Skip to content

Commit 4ab2a73

Browse files
committed
Fix key error bug
1 parent ec9f859 commit 4ab2a73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebooks_jason/max_of_K_all_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,6 +3266,7 @@ def do_linear_regression(X, Y):
32663266
]
32673267
print(f"len after: {len(df)}")
32683268

3269+
sorted_known_seeds = tuple(sorted(df["seed"].values))
32693270
# Group by 'attention_error_handling' and calculate the max 'normalized-accuracy-bound' for sorting groups
32703271
df = df[
32713272
[
@@ -3329,7 +3330,7 @@ def do_linear_regression(X, Y):
33293330
sing_upper_bound,
33303331
attn_err_handling_key,
33313332
best_bound_only,
3332-
tuple(sorted(subgroup["seed"].values)),
3333+
sorted_known_seeds,
33333334
)
33343335

33353336
attn_err_handling_key_latex = (

0 commit comments

Comments
 (0)