Skip to content

Commit

Permalink
Merge pull request #70 from farhan-najeeb/patch-1
Browse files Browse the repository at this point in the history
Update C2_W4_Assignment.ipynb
  • Loading branch information
ibrahimjelliti authored Oct 27, 2020
2 parents 1328136 + dd28bc3 commit 65efc87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,9 @@
" # Compute the gradient of W2\n",
" grad_W2 = (1/batch_size)*np.dot(yhat-y,h.T)\n",
" # Compute the gradient of b1\n",
" grad_b1 = np.sum((1/batch_size)*np.dot(l1,x.T),axis=1,keepdims=True)\n",
" grad_b1 = np.sum((1/batch_size)*l1,axis=1,keepdims=True)\n #1/m * relu(w2.T(yhat-y)) . 1mT\n"",
" # Compute the gradient of b2\n",
" grad_b2 = np.sum((1/batch_size)*np.dot(yhat-y,h.T),axis=1,keepdims=True)\n",
" grad_b2 = np.sum((1/batch_size)*(yhat-y),axis=1,keepdims=True)\n",
" ### END CODE HERE ###\n",
" \n",
" return grad_W1, grad_W2, grad_b1, grad_b2"
Expand Down

0 comments on commit 65efc87

Please sign in to comment.