Skip to content

Commit

Permalink
fixed bugged conditionals in evaluate() (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledmiller authored Apr 2, 2024
1 parent 1d08ebf commit 99c322b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modnet/models/vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,9 @@ def evaluate(
f"Loss {loss} not recognized. Use mae, mse or a callable."
)
else:
score.append(loss(y_true, y_pred[i]))
pass

score.append(loss(y_true, y_pred[i]))

return np.mean(score)

Expand Down

0 comments on commit 99c322b

Please sign in to comment.