Skip to content

Instantly share code, notes, and snippets.

@akarsh-saxena
Last active May 27, 2020 07:45
Show Gist options
  • Save akarsh-saxena/6b51cfd3125bd4eb567c3e262e72ce0e to your computer and use it in GitHub Desktop.
Save akarsh-saxena/6b51cfd3125bd4eb567c3e262e72ce0e to your computer and use it in GitHub Desktop.
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