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

Using corn loss with existing ordinal regression task. #25

Open
sreenivasaupadhyaya opened this issue Feb 8, 2024 · 0 comments
Open

Comments

@sreenivasaupadhyaya
Copy link

Hi @ck37 ,

Thanks for sharing this repo with Corn loss implementation. I see here that you have implemented both the corn layer as well as the CORN loss.

In my experiments, I already have a neural network trying to do ordinal regression (or classification) with N-1 output neurons (meaning i have N classes) and sigmoid activation on all the output neurons and the loss function is the sum of the individual Binary cross entropy loss from all the output neurons. Hence, I already have the ground truth outputs encoded in ordinal format.
I am using tensorflow 2.14.
Question:

  1. Can I use the "loss = coral.OrdinalCrossEntropy()" in the place where i calculate the loss?
  2. Does the "loss = coral.OrdinalCrossEntropy()" expect the ground truth outputs to be in integer labelled format (0 to N-1)?

Looking forward to your opinion.

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

No branches or pull requests

1 participant