How do I write a custom loss function of keras that computes the slope of y_pred and y_true and calculates the difference between the two slopes?
Asked
Active
Viewed 81 times
0
-
y_pred and y_true are tensors of values, how exactly do you want to compute the slope? slope of what? – Dr. Snoopy Oct 15 '17 at 09:42
-
I guess he/she wants a regression function based on keras backend API – Chan Kha Vu Oct 15 '17 at 18:27
-
Correct, that is what I want FalconUA – Márcia Baptista Oct 16 '17 at 03:00
-
You probably need to include more information about what exactly your network is doing (what are the inputs, what are the outputs it's trying to predict). – T3am5hark May 12 '18 at 21:46