Created
September 1, 2018 17:50
-
-
Save bushaev/f310fa5494dbd7aa45c41b63824ea14c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| for t in range(num_interations): | |
| dw[t] = compute_gradient(x, y) | |
| if dw[t] * dw[t - 1] > 0: | |
| step_size = min(step_size * incFactor, step_size_max) | |
| elif dw[t] * dw[t - 1] < 0: | |
| step_size = max(step_size * decFactor, step_size_min) | |
| w[t] = w[t - 1] - sign(dw[t]) * step_size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment