Skip to content

Commit

Permalink
Fix simple_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
knikolaou committed Apr 10, 2024
1 parent 7ba5de5 commit 99eff3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions znnl/loss_functions/simple_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def __call__(
total loss of all points based on the similarity measurement
"""
if mask is not None:
return np.sum(self.metric(point_1, point_2) * mask, axis=0)
return np.mean(self.metric(point_1, point_2) * mask, axis=0)
else:
return np.sum(self.metric(point_1, point_2), axis=0)
return np.mean(self.metric(point_1, point_2), axis=0)

0 comments on commit 99eff3e

Please sign in to comment.