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

Negative labels are silently masked #353

Open
nicolaspi opened this issue Aug 18, 2023 · 0 comments
Open

Negative labels are silently masked #353

nicolaspi opened this issue Aug 18, 2023 · 0 comments

Comments

@nicolaspi
Copy link

Hi,
Is there any reason for masking the negative labels? As far as I know there is no mention in the documentation that the labels must be positive, neither in the presentation slides.

Negative labels have a semantic significance in my use case and the metrics and losses I am using are still mathematically valid for negative values.

For now I am bypassing the constraint with a ugly patch:
tfr.utils.is_label_valid = lambda labels: tf.ones_like(labels, dtype=tf.bool)
maybe there is a better solution?

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