Created
November 11, 2018 07:52
-
-
Save mdhasanai/4628d3395b5f17263a07b25a86b2f750 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Network(iteration): | |
X, Y, W1, W2, b1, b2 = initialization() | |
for i in range(iteration): | |
Z1,A1,Z2,A2,error = forward_prop(X,Y,W1,W2,b1,b2) | |
da1,da2,dz1,dz2,dw1,dw2,db1,db2 = backward_prop(X, Y, W1, W2, b1, b2, Z1,A1,Z2,A2) | |
W1,W2,b1,b2 = update_parameters(W1,W2,b1,b2,dw1,dw2,dz1,dz2,db1,db2) | |
print('Iteration {} error: {}'.format(i,error)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment