Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

SparseCategoricalFocalLoss: ignore class? #24

Open
rdisipio opened this issue Oct 27, 2022 · 0 comments
Open

SparseCategoricalFocalLoss: ignore class? #24

rdisipio opened this issue Oct 27, 2022 · 0 comments

Comments

@rdisipio
Copy link

rdisipio commented Oct 27, 2022

Hi,

TensorFlow's implementation of categorical cross-entropy accepts a parameter called ignore_class (see here) since v 2.10. In principle, it can be useful for NER tasks. It would be nice if such a parameter appeared in the calculation of focal loss, so an apple-to-apple comparison can be carried out.

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

No branches or pull requests

1 participant