Skip to content

Commit

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

- cast scores from tensor.float to primitive float
  • Loading branch information
mediumsizeworkingdog authored and codebender37 committed Dec 9, 2024
1 parent 383d505 commit 11ce44a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion dojo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ def get_dojo_api_base_url() -> str:
if base_url is None:
raise ValueError("DOJO_API_BASE_URL is not set in the environment.")

return base_url
return base_url

0 comments on commit 11ce44a

Please sign in to comment.