daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest May 16th, 2018 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top