Towards Data Science, Artificial Intelligence, TensorFlow, Machine Learning, Deep Learning.
equation becomes D², and the second part becomes zero. So, the D² term has more weight when Y_true is close to 1. If Y_true = 0, then the first part of the equation becomes zero, and the second part yields some result. This gives much more weight to the max term and less weight to the D squared