I am having a problem at hand which optimizes a loss function that is not a function of y_pred and y_true . After going through the Keras documentation , I found out that all the custom loss functions must be a function of both y_pred and y_true.
Is there any alternate way of implementing my kind of loss function in Keras?
function(y_true,y_pred)
and simply not use them. But well... does it make any sense to not usey_pred
in the loss function? – Daniel Möller