Skip to content

Instantly share code, notes, and snippets.

@sol0invictus
Created January 5, 2020 04:10
Show Gist options
  • Save sol0invictus/8919a9f5f6e671cd80b4dc627b5252bf to your computer and use it in GitHub Desktop.
Save sol0invictus/8919a9f5f6e671cd80b4dc627b5252bf to your computer and use it in GitHub Desktop.
custom loss blog file
import tensorflow.keras.backend as kb
def custom_loss(y_actual,y_pred):
custom_loss=kb.square(y_actual-y_pred)
return custom_loss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment