Skip to content

Commit 170f34a

Browse files
committed
fix: address CodeRabbit minor issues
Signed-off-by: Rusheel Sharma <rusheelhere@gmail.com>
1 parent 9863a93 commit 170f34a

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

monai/metrics/generalized_dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def compute_generalized_dice(
137137
predicted output. Defaults to True.
138138
weight_type (Union[Weight, str], optional): {``"square"``, ``"simple"``, ``"uniform"``}. Type of function to
139139
transform ground truth volume into a weight factor. Defaults to ``"square"``.
140-
sum_over_labels (bool): Whether to sum the numerator and denominator across all labels before the final computation.
140+
sum_over_classes (bool): Whether to sum the numerator and denominator across all classes before the final computation.
141141
ignore_index: class index to ignore from the metric computation.
142142
143143
Returns:

monai/metrics/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def get_mask_edges(
165165
crop: bool = True,
166166
spacing: Sequence | None = None,
167167
always_return_as_numpy: bool = False,
168-
ignore_index: int | None = None,
169168
) -> tuple[NdarrayTensor, NdarrayTensor]:
170169
"""
171170
Compute edges from binary segmentation masks. This
@@ -267,7 +266,6 @@ def get_surface_distance(
267266
seg_gt: NdarrayOrTensor,
268267
distance_metric: str = "euclidean",
269268
spacing: int | float | np.ndarray | Sequence[int | float] | None = None,
270-
mask: NdarrayOrTensor | None = None,
271269
) -> NdarrayOrTensor:
272270
"""
273271
This function is used to compute the surface distances from `seg_pred` to `seg_gt`.
@@ -327,7 +325,6 @@ def get_edge_surface_distance(
327325
symmetric: bool = False,
328326
class_index: int = -1,
329327
mask: torch.Tensor | None = None,
330-
ignore_index: int | None = None,
331328
) -> tuple[
332329
tuple[torch.Tensor, torch.Tensor],
333330
tuple[torch.Tensor, torch.Tensor] | tuple[torch.Tensor],

0 commit comments

Comments
 (0)