I am currently trying to write my own loss functions in Keras, which checks if the values of my prediction are existing in the labels in any order.
Here is a code example