Created
May 21, 2018 04:01
-
-
Save khanhnamle1994/78c0177f6b93ee47cf4b28ca1916be05 to your computer and use it in GitHub Desktop.
Stochastic Gradient Descent
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 sgd(self, x, y, learning_rate): | |
dU, dW, dV = self.bptt(x, y) | |
self.U -= learning_rate * dU | |
self.V -= learning_rate * dV | |
self.W -= learning_rate * dW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment