File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3266,7 +3266,13 @@ def do_linear_regression(X, Y):
3266
3266
]
3267
3267
print (f"len after: { len (df )} " )
3268
3268
3269
- sorted_known_seeds = np .unique (np .array (df ["seed" ].values ), return_counts = True )
3269
+ sorted_known_seeds , sorted_known_seeds_counts = np .unique (
3270
+ np .array (df ["seed" ].values ), return_counts = True
3271
+ )
3272
+ sorted_known_seeds = tuple (
3273
+ zip (sorted_known_seeds .tolist (), sorted_known_seeds_counts .tolist ())
3274
+ )
3275
+
3270
3276
# Group by 'attention_error_handling' and calculate the max 'normalized-accuracy-bound' for sorting groups
3271
3277
df = df [
3272
3278
[
@@ -3774,6 +3780,7 @@ def do_linear_regression(X, Y):
3774
3780
"all_tokens_datasets_lens" ,
3775
3781
"sub_cfg_counts" ,
3776
3782
"sorted_known_seeds" ,
3783
+ "sorted_known_seeds_counts" ,
3777
3784
):
3778
3785
if var in locals ():
3779
3786
del locals ()[var ]
You can’t perform that action at this time.
0 commit comments