Repository navigation
docs: add missing loss entries to losses.rst - #9317
sheetalsureshunny wants to merge 2 commits into
Conversation
Add autoclass entries for the public losses missing from the API documentation: AUCMLoss, AsymmetricUnifiedFocalLoss, BoxGIoULoss and LogHausdorffDTLoss, plus the documented-but-undocumented aliases dice_ce, dice_focal, generalized_dice_focal and giou. BoxGIoULoss and AUCMLoss are placed under new Detection and Classification sections respectively. Assisted-by: Devin <devin@cognition.ai> Signed-off-by: Sheetal Suresh Unny <227441477+sheetalsureshunny@users.noreply.github.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Move automodule/currentmodule to the page level and add a task-based summary table linking to new per-category anchors, with a short description under each section heading. Assisted-by: Devin <devin@cognition.ai> Signed-off-by: Sheetal Suresh Unny <227441477+sheetalsureshunny@users.noreply.github.com>
Fixes #9272.
Description
Adds Sphinx
autoclassentries for the publicmonai.lossesmembers that had no API documentation:AUCMLoss,AsymmetricUnifiedFocalLoss,BoxGIoULoss,LogHausdorffDTLoss(the four listed in the issue)dice_ce,dice_focal,generalized_dice_focal(nested under their classes' headings, matching the existingdice/generalized_dicestyle), andgiouunderBoxGIoULossLogHausdorffDTLossis placed inside the existingHausdorffDTLossheading since both live inhausdorff_loss.py.AsymmetricUnifiedFocalLossjoins Segmentation Losses.AUCMLoss(AUROC/classification) andBoxGIoULoss(bounding-box regression) get newClassification LossesandDetection Lossessections rather than being filed under segmentation.Also tidies the page structure:
automodule/currentmodulemoved to page level (they were nested inside the Segmentation section)All 42 names exported from
monai.lossesare now covered by the page.Note: the issue author expressed interest in working on this ~2 weeks ago; no PR was opened, so submitting this — happy to close or coordinate if they already have work in progress.
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.