daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. X = np.array([
  2.     np.array([1,2,3]),
  3.     np.array([1,2,3]),
  4.     np.array([1,2,3]),
  5. ])
  6. y = np.array([1, 2, 3])
  7. theta = np.array([1, 2, 3])
  8.  
  9. print(logistic_func(theta, X[0]))
  10. print(logistic_func_all(theta, X))
  11. print(cross_entropy_loss(theta, X, y))
  12. print(grad_cross_entropy_loss(theta, X, y))
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