Skip to content

Commit

Permalink
mean absolute error code correction (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanjgoldman committed Nov 5, 2020
1 parent 43e1201 commit 769be2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/loss_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def KLDivergence(yHat, y):


def L1(yHat, y):
return np.sum(np.absolute(yHat - y))
return np.sum(np.absolute(yHat - y)) / y.size


def L2(yHat, y):
Expand Down

0 comments on commit 769be2b

Please sign in to comment.