Skip to content

Commit

Permalink
Updating MSE loss function
Browse files Browse the repository at this point in the history
  • Loading branch information
bfortuner committed Nov 14, 2017
1 parent b504765 commit 839d475
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 @@ -27,7 +27,7 @@ def MLE(yHat, y):


def MSE(yHat, y):
return np.sum((yHat - y)**2) / 2.0
return np.sum((yHat - y)**2) / y.size

def MSE_prime(yHat, y):
return yHat - y

0 comments on commit 839d475

Please sign in to comment.