panns_transfer_to_gtzan icon indicating copy to clipboard operation
panns_transfer_to_gtzan copied to clipboard

Question about clip_nll loss.

Open YuGuiwe opened this issue 2 years ago • 0 comments

I am confused about the calculation clip_nll loss. If my predict : clipwise_output = [-1.2 , -2.3, -0.5] target = [0, 0, 1] torch.mean(clipwise_output * target) = torch.mean([0, 0, -0.5]) = -0.166

Cross entropy was averaged by the number of category ? Thanks for your reading...Hope it's not stupid question, I am beginner in training model.

YuGuiwe avatar Apr 11 '22 15:04 YuGuiwe