Skip to content

Instantly share code, notes, and snippets.

@maskaravivek
Created June 22, 2020 06:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maskaravivek/0a19f0356d1d9c673bb3c7b1c5368cff to your computer and use it in GitHub Desktop.
Save maskaravivek/0a19f0356d1d9c673bb3c7b1c5368cff to your computer and use it in GitHub Desktop.
import tensorflow.keras.backend as k
def custom_loss(y_actual, y_pred):
custom_loss = k.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