Skip to content

Instantly share code, notes, and snippets.

@RaphaelMeudec
Created March 20, 2018 09:55
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 RaphaelMeudec/4fa6a6fe8fb341a1c410c5e2dad087de to your computer and use it in GitHub Desktop.
Save RaphaelMeudec/4fa6a6fe8fb341a1c410c5e2dad087de to your computer and use it in GitHub Desktop.
import keras.backend as K
def wasserstein_loss(y_true, y_pred):
return K.mean(y_true*y_pred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment