Skip to content

Instantly share code, notes, and snippets.

@mdhasanai
Created November 11, 2018 07:52
Show Gist options
  • Save mdhasanai/6f995c725fafabff032c06ff136caab9 to your computer and use it in GitHub Desktop.
Save mdhasanai/6f995c725fafabff032c06ff136caab9 to your computer and use it in GitHub Desktop.
def update_parameters(w1,w2,bias1,bias2, dw1,dw2,dz1,dz2,db1,db2,learning_rate=0.5):
w1 = w1 - (learning_rate * dw1)
bias1 = bias1 - (learning_rate * dz1)
w2 = w2 - (learning_rate * dw2)
bias2 = bias2 - (learning_rate * dz2)
return w1,w2,bias1,bias2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment