Skip to content

Commit

Permalink
fix: use correct dimension when calculating mean scores
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Dec 10, 2024
1 parent 4fe0d8a commit 2f30931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/extract_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ async def build_jsonl(filename: str):
logger.info(f"raw_scores_vec: {raw_scores_vec}")

if raw_scores_vec.size > 0:
mean_scores = raw_scores_vec.mean(axis=1)
# ensure we're taking mean for each completion, across all miners
mean_scores = raw_scores_vec.mean(axis=0)
logger.info(f"mean_scores shape: {mean_scores.shape}")
jsonl_row = Row(
prompt=prompt,
Expand Down

0 comments on commit 2f30931

Please sign in to comment.