Skip to content

Commit

Permalink
update dummy loss to take mean not sum
Browse files Browse the repository at this point in the history
dummy run wasn't doing anything reasonable
  • Loading branch information
pattonw committed Feb 18, 2025
1 parent d523f36 commit 02e5811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dacapo/experiments/tasks/losses/dummy_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def compute(self, prediction, target, weight=None):
It is used to test the training loop and the loss calculation.
"""

return abs(prediction - target).sum()
return abs(prediction - target).mean()

0 comments on commit 02e5811

Please sign in to comment.