keras/keras_core/losses
Aakash Kumar Nain b3409e383c Add Hinge losses (#31)
* add hinge, squared_hine, and categorical hinge losses

* add tests for hinge, squared_hinge, and categorical hinge losses

* fix keyword argument for jax cond

* format docstrings for hinge losses

* format hinge losses tests

* fix linting errors in activations init and test_case py files

* fix bug in reduce_values function

* rename _transform_binary_labels to convert_binary_labels_to_hinge

* fix casting of  values in  class

* convert shape values to tensor

* add hinge metrics and the corresponding tests

* revert formatting in activations init
2023-04-24 02:30:11 +05:30
..
__init__.py Merge branch 'main' of github.com:keras-team/keras-core 2023-04-21 23:16:51 -07:00
loss_test.py Fix tests. 2023-04-22 09:25:19 -07:00
loss.py Add Hinge losses (#31) 2023-04-24 02:30:11 +05:30
losses_test.py Add Hinge losses (#31) 2023-04-24 02:30:11 +05:30
losses.py Add Hinge losses (#31) 2023-04-24 02:30:11 +05:30