Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
data_mining:neural_network:loss_functions [2019/11/10 00:04] – [Binary cross entropy] phreazer | data_mining:neural_network:loss_functions [2019/11/10 00:10] – [Binary cross entropy] phreazer | ||
---|---|---|---|
Line 32: | Line 32: | ||
$D_{KL}(q||p) = H_p(q) - H(q) = \sum_{c=1}^C q(y_c) (log(q(y_c) - log(p(y_c)))$ | $D_{KL}(q||p) = H_p(q) - H(q) = \sum_{c=1}^C q(y_c) (log(q(y_c) - log(p(y_c)))$ | ||
+ | |||
+ | For an algo we need to find closes $p$ for $q$ by minimizing cross-entropy. |