Created
January 5, 2020 04:10
-
-
Save sol0invictus/8919a9f5f6e671cd80b4dc627b5252bf to your computer and use it in GitHub Desktop.
custom loss blog file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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