Guest User

Untitled

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