def charbonnier(I_x, I_y, I_t, U, V, e):
loss = K.sqrt(K.pow((U*I_x + V*I_y + I_t), 2) + e)
return K.sum(loss)
I would like to use this cost function and optimise it for U and V. I am currently struggling to get it working with Keras, since Keras loss functions can only have the form f(y_true, y_pred).
My model is completely unsupervised and I have no ground-truth. I_x, I_y and I_t are constants, and the goal of the model is to learn the U and V which minimises E(F). So my question is: What is the correct way to implement this kind of loss function (which does not have the form f(y_true, y_pred)), in Keras?