Skip to content

Instantly share code, notes, and snippets.

@curiousily
Created March 30, 2019 22:01
Show Gist options
  • Save curiousily/3c2584c71321ea428f63f2df0693c061 to your computer and use it in GitHub Desktop.
Save curiousily/3c2584c71321ea428f63f2df0693c061 to your computer and use it in GitHub Desktop.
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