Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement