The printed PDF has a plus sign before the second logarithm. Differentiating that expression literally, with and , givesFor example, at it is , so minimizing this printed objective pushes the predicted probability of class one upwards rather than downwards; the objective is unbounded below as . It is therefore not the usual binary cross-entropy.
If the second sign was intended to be negative, the standard negative log-likelihood is and the derivative simplifies instead to . Stating both cases preserves the actual question's algebra while identifying the apparent sign error. The logarithms here are natural; another base multiplies the gradients by its constant conversion factor.
Articles by others on the same topic
There are currently no matching articles.