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

Add classes/ignore_index to losses #11

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Add classes/ignore_index to losses #11

merged 2 commits into from
Feb 27, 2024

Conversation

isaaccorley
Copy link
Owner

@isaaccorley isaaccorley commented Feb 27, 2024

Some of the loss functions use either ignore_index, classes, or in some cases both. However some losses are are able to support both. This PR adds the following:

  • Support classes in FocalLoss
  • Support ignore_index in JaccardLoss

See #7

@isaaccorley isaaccorley self-assigned this Feb 27, 2024
@isaaccorley isaaccorley merged commit bdea2e8 into main Feb 27, 2024
14 checks passed
@isaaccorley isaaccorley deleted the losses/ignore-index branch February 27, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant