Created
March 30, 2019 22:01
-
-
Save curiousily/3c2584c71321ea428f63f2df0693c061 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): | |
return (-y * np.log(h) - (1 - y) * np.log(1 - h)).mean() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment