Hi roxor!



 roxor:

Actually, all I want is the distance-matrix loss.


Two comments:
First, as I said initially, cross-entropy with soft targets it a way to penalize
some misclassifications differently from others.  But it is not the same as
a difference-matrix loss.
Second, you should think hard about whether you really want to use a
difference-matrix loss.  What you want in practice is a loss that causes
your network to train effectively and then give accurate predictions.
A cross-entropy-like loss is likely to work better in this regard.  In any
event, you shouldn’t just assume that a distance-matrix loss will work
better – at a minimum, you should try both and see which gives better
results.
Best.
K. Frank