Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrdinalCrossEntropy does not use reduction argument #12

Closed
gmgeorg opened this issue Feb 20, 2022 · 0 comments · Fixed by #13
Closed

OrdinalCrossEntropy does not use reduction argument #12

gmgeorg opened this issue Feb 20, 2022 · 0 comments · Fixed by #13

Comments

@gmgeorg
Copy link
Collaborator

gmgeorg commented Feb 20, 2022

OrdinalCrossEntropy inherits from baseline Loss class with reduction argument. However, the reduction argument is then ignored in the actual loss computation of the helper function: ordinal_loss() (it uses reduce_mean() even if reduction != tf.keras.losses.Reduction.SUM_OVER_BATCH_SIZE or AUTO)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant