Skip to content

Instantly share code, notes, and snippets.

@muhammadgaffar
Created October 24, 2018 15:08
Show Gist options
  • Save muhammadgaffar/21268cd972cccebd7682457d17f1c6c8 to your computer and use it in GitHub Desktop.
Save muhammadgaffar/21268cd972cccebd7682457d17f1c6c8 to your computer and use it in GitHub Desktop.
def loss(Y_hat,Y):
if Y = 1:
return Y_hat
if Y = 0:
return 1-Y_hat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment