Skip to content

Commit

Permalink
fix: wandb missing final scores (#88)
Browse files Browse the repository at this point in the history
* fix: wandb now storing final scores correctly

* fix: cast scores from tensor.float to primitive float
  • Loading branch information
mediumsizeworkingdog authored and jarvis8x7b committed Dec 9, 2024
1 parent e63481d commit d992fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commons/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ def calculate_score(
ground_truth = gt_score[i]

# NOTE: just use ground truth for now
hotkey_to_final_score[r.axon.hotkey] = ground_truth / len(
criteria_types
hotkey_to_final_score[r.axon.hotkey] = float(
ground_truth / len(criteria_types)
)

criteria_to_miner_scores[criteria.type] = Score(
Expand Down

0 comments on commit d992fd9

Please sign in to comment.