-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Momentum and Nesterov modifications (#148)
* Added Momentum and Nesterov modifications * Resolved dummy argument error * Changes in update formulas * Corrected formulae, velocity allocation changes * Added concrete implementation of RMSProp * Report RMSE every 10% of num_epochs; Fix xtest calculation * Initialize networks with same weights; larger batch; larger test array * Start putting RMS and velocity structures in place; yet to be allocated and initialized * WIP: SGD and RMSprop optimizers plumbing at the network % update level * Added get_gradients() method (draft) * Clean up formatting and docstrings * Flush gradients to zero; code compiles but segfaults * Set default value for batch_size; tests pass in debug mode but segfault in optimized mode * Update learning rates in simple and sine examples because the default changed * Added draft test suite for optimizers * Store the optimizer as a member of the network type * Don't print to stdout; indentation * Added convergence tests * Resolved comments * Clean up * Import RMSProp * Remove old code * Add optimizer support notes --------- Co-authored-by: milancurcic <[email protected]>
- Loading branch information
1 parent
6bbc28d
commit e9bfbd6
Showing
16 changed files
with
470 additions
and
151 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.