I want to implement a custom loss function, I read the following links
Implementing custom loss function in keras with different sizes for y_true and y_pred
What is y_true and y_pred when creating a custom metric in Keras?
But when I return the following in the metric function
K.sum(y_true)
it returns a float value.
My label values are all integrals, so why is their sum coming as float value?