@@ -174,13 +174,13 @@ def _create_rocauc_intermediate(
174174 sink = self ._intermediate_writer ,
175175 batch_size = batch_size ,
176176 sorting = [
177- ("score " , "descending" ),
177+ ("pd_score " , "descending" ),
178178 # ("pd_label_id", "ascending"),
179179 ("match" , "ascending" ),
180180 ],
181181 columns = [
182182 "pd_label_id" ,
183- "score " ,
183+ "pd_score " ,
184184 "match" ,
185185 ],
186186 )
@@ -194,7 +194,7 @@ def _create_rocauc_intermediate(
194194 for tbl in intermediate .iterate_tables ():
195195 pd_label_ids = tbl ["pd_label_id" ].to_numpy ()
196196 tps = tbl ["match" ].to_numpy ()
197- scores = tbl ["score " ].to_numpy ()
197+ scores = tbl ["pd_score " ].to_numpy ()
198198 fps = ~ tps
199199
200200 for idx in index_to_label .keys ():
@@ -286,7 +286,7 @@ def finalize(
286286 # sort in-place and locally
287287 self ._writer .sort_by (
288288 [
289- ("score " , "descending" ),
289+ ("pd_score " , "descending" ),
290290 ("datum_id" , "ascending" ),
291291 ("gt_label_id" , "ascending" ),
292292 ("pd_label_id" , "ascending" ),
@@ -497,8 +497,8 @@ def iterate_values(self):
497497 "datum_id" ,
498498 "gt_label_id" ,
499499 "pd_label_id" ,
500- "score " ,
501- "winner " ,
500+ "pd_score " ,
501+ "pd_winner " ,
502502 "match" ,
503503 ]
504504 for tbl in self ._reader .iterate_tables (columns = columns ):
@@ -512,8 +512,8 @@ def iterate_values(self):
512512 ]
513513 ]
514514 )
515- scores = tbl ["score " ].to_numpy ()
516- winners = tbl ["winner " ].to_numpy ()
515+ scores = tbl ["pd_score " ].to_numpy ()
516+ winners = tbl ["pd_winner " ].to_numpy ()
517517 matches = tbl ["match" ].to_numpy ()
518518 yield ids , scores , winners , matches
519519
@@ -529,8 +529,8 @@ def iterate_values_with_tables(self):
529529 ]
530530 ]
531531 )
532- scores = tbl ["score " ].to_numpy ()
533- winners = tbl ["winner " ].to_numpy ()
532+ scores = tbl ["pd_score " ].to_numpy ()
533+ winners = tbl ["pd_winner " ].to_numpy ()
534534 matches = tbl ["match" ].to_numpy ()
535535 yield ids , scores , winners , matches , tbl
536536
0 commit comments