Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Negative labels are silently masked #353

@nicolaspi

Description

@nicolaspi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions