Skip to content

Instantly share code, notes, and snippets.

@mdhasanai
Created November 11, 2018 07:51
Show Gist options
  • Save mdhasanai/200cd0334b2749ff887846598cb7da0d to your computer and use it in GitHub Desktop.
Save mdhasanai/200cd0334b2749ff887846598cb7da0d to your computer and use it in GitHub Desktop.
def forward_prop(x,y,w1,w2,bias1,bias2):
Z1 = np.dot(w1,x) + bias1
A1 = sigmoid(Z1)
Z2 = np.dot(w2,A1) + bias2
A2 = sigmoid(Z2)
error = compute_error(A2,y)
return Z1,A1,Z2,A2, error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment