Created
September 1, 2018 17:50
-
-
Save bushaev/36a51b0caedd57864edd056c7894f7fe to your computer and use it in GitHub Desktop.
simplest form of rprop update rule
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