Last active
May 27, 2020 07:45
-
-
Save akarsh-saxena/6b51cfd3125bd4eb567c3e262e72ce0e 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
epochs = 1000 | |
learning_rate = 5e-3 | |
params = initialize_nn(X_train) | |
for i in range(epochs): | |
cache = forward_prop(X_train, params) | |
loss = calculate_loss(cache, y_train) | |
updates = backward_prop(X_train, y_train, cache) | |
params = update_weights(params, updates, learning_rate=learning_rate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment