Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/segmentation/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def dice_score(
target: Tensor,
num_classes: int,
include_background: bool = True,
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "micro",
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "macro",
input_format: Literal["one-hot", "index", "mixed"] = "one-hot",
aggregation_level: Optional[Literal["samplewise", "global"]] = "samplewise",
) -> Tensor:
Expand Down
2 changes: 1 addition & 1 deletion src/torchmetrics/segmentation/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(
self,
num_classes: int,
include_background: bool = True,
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "micro",
average: Optional[Literal["micro", "macro", "weighted", "none"]] = "macro",
aggregation_level: Optional[Literal["samplewise", "global"]] = "samplewise",
input_format: Literal["one-hot", "index", "mixed"] = "one-hot",
**kwargs: Any,
Expand Down
Loading