keras/keras_core
Neel Kovelamudi 07baa958f5 Adds RMSprop and AdamW optimizers with associated tests. (#59)
* Add golden correctness tests for Adam and SGD

* Fix dtype issues

* Sync with main (#56)

* Minor touch ups

* Fix a pretty major bug

* Format code

* Big rethink of Variable API

* Make build-by-run the default build(), leveraging new zero_history KerasTensor mode

* Minor fixes

* Format code

* Switch back to build-by-eager-run for simplicity

* Add raise upon build failure

* Work around JAX bug.

* Add a few more tests.

* Add saving tests

* Adds test suite for SGD and golden correctness tests for all optimizers (#40)

* Add golden correctness tests for Adam and SGD

* Fix dtype issues

* Add binary accuracy (#41)

* chore: adding binary accuracy

* chore: fix docstring

* Add tests for add_loss and activity regularization.

* Reformat code

* Add ActivityRegularization layer

* Fix JAX CI.

* Add Lambda Callback (#42)

* Add LambdaCallback

* Add Lambda Callback

* Add Lambda Callback

* Rename lambda_callback_test.py

* Add einsum (#43)

* Add einsum

* address comments

* Fix format line length (#45)

* Add Embedding layer

* Shorten lines

* Add .vscode to .gitignore (#46)

* rm vscode settings

* add .vscode to gitignore

* Set demo program backend (#48)

* Add tests for training arg resolution in Layer.

* Implement mixed precision.

* Replace backend.execute with backend.numpy.XXX (#50)

* Add cosine similarity loss and update l2_normalize from regularizers (#34)

* Begin cosine loss

* Add testing for cosine similarity

* Fix formatting

* Docstring standardization

* Formatting

* Create numerical_utils

* Fix issue with call context lingering.

* Add the EarlyStopping callback (#44)

* add earlystopping callback

* addressing comments

* address comments

* addressing comments

* remove unused imports

* re-enable imports checks (#51)

* Add nn.one_hot (#52)

* Add GaussianDropout layer.

* Add GaussianNoise layer

* Add Categorical Accuracy Metric (#47)

* chore: adding categorical accuracy metric

* chore: reformat docstrings

* chore: reformat

* chore: ndims with len

* refactor the docstring

* Fix typos

* Implement masking.

---------

Co-authored-by: Francois Chollet <francois.chollet@gmail.com>
Co-authored-by: Aritra Roy Gosthipaty <aritra.born2fly@gmail.com>
Co-authored-by: Ramesh Sampath <1437573+sampathweb@users.noreply.github.com>
Co-authored-by: Chen Qian <chenmoney@google.com>
Co-authored-by: Haifeng Jin <5476582+haifeng-jin@users.noreply.github.com>
Co-authored-by: Gabriel Rasskin <43894452+grasskin@users.noreply.github.com>

* Adds rmsprop optimizer and tests

* Add AdamW optimizer and tests, minor formatting changes

* Implemented formatting fixes

---------

Co-authored-by: Francois Chollet <francois.chollet@gmail.com>
Co-authored-by: Aritra Roy Gosthipaty <aritra.born2fly@gmail.com>
Co-authored-by: Ramesh Sampath <1437573+sampathweb@users.noreply.github.com>
Co-authored-by: Chen Qian <chenmoney@google.com>
Co-authored-by: Haifeng Jin <5476582+haifeng-jin@users.noreply.github.com>
Co-authored-by: Gabriel Rasskin <43894452+grasskin@users.noreply.github.com>
2023-04-29 01:53:50 +00:00
..
activations Minor refactor 2023-04-23 17:00:19 -07:00
backend Fix a bug and a TODO 2023-04-28 14:22:29 -07:00
callbacks re-enable imports checks (#51) 2023-04-27 17:51:32 -07:00
constraints Add bulk of serialization logic. 2023-04-21 10:00:32 -07:00
initializers re-enable imports checks (#51) 2023-04-27 17:51:32 -07:00
layers Add SpatialDropout1D/2D/3D layers 2023-04-28 16:17:04 -07:00
losses re-enable imports checks (#51) 2023-04-27 17:51:32 -07:00
metrics Add FalseNegatives, TruePositives, TrueNegatives metrics (#55) 2023-04-28 16:15:39 -06:00
mixed_precision Implement mixed precision. 2023-04-27 16:02:31 -07:00
models Fix bug. 2023-04-28 15:10:53 -07:00
operations Add nn.one_hot (#52) 2023-04-27 17:52:47 -07:00
optimizers Adds RMSprop and AdamW optimizers with associated tests. (#59) 2023-04-29 01:53:50 +00:00
regularizers Add cosine similarity loss and update l2_normalize from regularizers (#34) 2023-04-27 19:09:42 -04:00
saving Fix format line length (#45) 2023-04-26 22:42:23 -05:00
testing Add Embedding layer 2023-04-26 20:22:03 -07:00
trainers re-enable imports checks (#51) 2023-04-27 17:51:32 -07:00
utils re-enable imports checks (#51) 2023-04-27 17:51:32 -07:00
__init__.py Add bulk of serialization logic. 2023-04-21 10:00:32 -07:00
api_export.py Added initial Adam tests 2023-04-24 22:07:56 +00:00