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:10] – [Binary cross entropy] phreazer | data_mining:neural_network:loss_functions [2019/11/10 00:22] – phreazer | ||
---|---|---|---|
Line 6: | Line 6: | ||
$-(y log(\hat{y}) + (1-y) log(1-\hat{y})$ | $-(y log(\hat{y}) + (1-y) log(1-\hat{y})$ | ||
+ | |||
+ | or | ||
+ | |||
+ | $-1/N \sum_{i=1}^N (y_i log(\hat{y_i}) + (1-y_i) log(1-\hat{y_i})$ | ||
(Negative log, since log in [0,1] is < 0) | (Negative log, since log in [0,1] is < 0) |