Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bceLoss = -(#Target*Log[#Input] + (1 - #Target)*Log[1 - #Input]) &;
- Plot[Evaluate@bceLoss[<|"Input" -> p, "Target" -> 1|>], {p, 0, 1},
- FrameLabel -> {"Probability of Ground Truth Class", "Loss"},
- Frame -> {{True, False}, {True, False}}, PlotTheme -> "Business"]
Add Comment
Please, Sign In to add comment