Created
April 1, 2019 20:24
-
-
Save curiousily/635e0eb0d62b9f5ec05d75d31fdfe241 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def loss(h, y): | |
sq_error = (h - y)**2 | |
n = len(y) | |
return 1.0 / (2*n) * sq_error.sum() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment