Skip to content

Commit

Permalink
Fix subset result change
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 committed Jan 28, 2025
1 parent a9ac204 commit d47cbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run_rewardbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def main():
results_grouped = {}
present_subsets = np.unique(subsets)
for subset in present_subsets:
subset_dataset = out_dataset.filter(lambda example: example["subset"] == subset)
subset_dataset = out_dataset[out_dataset["subsets"] == subset]
num_correct = sum(subset_dataset["results"])
num_total = len(subset_dataset["results"])
print(f"{subset}: {num_correct}/{num_total} ({num_correct/num_total})")
Expand Down

0 comments on commit d47cbbb

Please sign in to comment.