Hi pvardanis!



 pvardanis:

Now it’s correct:


Yes, this does look right to me.  (No promises, though!)  This is indeed
the loss function I was suggesting.
Does it work in practice for your model?
Good luck!
K. Frank