Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ## ---------------------------------------------forward pass----------------------------------------------
  2.  
  3. ## x is (N, D) and W1 is (D, hidden) and hence, Z1 is (N, hidden)
  4. z1 = np.dot(x, W1) + b1
  5. ## applying activation function
  6. a1 = relu(z1)
  7. ## Z1 is (N, hidden) and W2 is (hidden, C) and hence Z2 be should (N, C)
  8. scores = np.dot(a1, W2) + b2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement