Hi,
No worries, thanks for your effort and the code!
This helps me quite a lot, also to see how to implement such custom loss function  So far it didn’t worked for my problem, I have to rethink some stuff but now I’ve a great possibility to move on