The question looks foolish, but I think cross-entropy is somewhat weird as a cost function.
What I mean is, for example mean square error asAs a cost function for linear regression, itthe mean square error $ \sum_{i=1}^{n} (y_i - (ax_i+b)) ^2$ seems quite rational. Becausereasonable, because it literally/directly measures the error between real value and predicted value, directly.
For mathematic expression : $ \sum_{i=1}^{n} (y_i - (ax_i+b)) ^2$
But aboutHowever, in the case of the cross-entropy, I do not understand what it is.
For multi-class classification, for example, with 3 classes:
, the true target =[ 0 0 1 ]
is $[ 0, 0, 1 ]$, while the output of the model = [ 0.2 0.3 0.5 ]is $[ 0.2, 0.3, 0.5 ]$ (maybe with a softmax activation at the last layer)
. So, the error of it is : $C(x) = -(0*log(0.2) + 0*log(0.3) + 1*log(0.5))$.
It looks... I don't know, why it is a "Errorit an "error?" and howHow can it make updatebe updated with backpropagation?
Also, what is the objective of it? Maybe optimization, so maybe minimizing error? thenThen what happens?