Project-MONAI / Project-MONAI/MONAI

optional include_background for the CE loss in DiceCELoss

Open
#6,855 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Is your feature request related to a problem? Please describe.
In the DiceCELoss include_background parameter affects the DiceLoss component, would be great to add a similar option for the CELoss component.

https://github.com/Project-MONAI/MONAI/blob/115f146e4e37e23c7241ac5decfec42bb7aa6c84/monai/losses/dice.py#L598-L609

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at monai/losses/dice.py around lines 598-609, the DiceCELoss implementation linked in the issue, and read how include_background currently affects the DiceLoss component. Done means the CELoss component also supports the requested optional background inclusion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.