PacktPublishing/Modern-Computer-Vision-with-PyTorch

Binary cross-entropy function p.30

davidaking opened this issue · 1 comments

Is the function for binary-cross entropy on p.30 correct? - should there be a np.sum in there - looks like it should just be np.mean to correspond to the formula given on p.24 ?

Thank you @davidaking

The convention in the book may not be upto the mark in retrospect. We are providing an errata here with the updated formulae for both binary and categorical cross entropy.