From 9baf6e6c68ba26e173d4945dcc4a712ae5465738 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Fri, 13 Sep 2024 20:15:20 +0200 Subject: [PATCH] Apply suggestions from code review --- src/torchmetrics/classification/dice.py | 6 +++--- src/torchmetrics/functional/classification/dice.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/torchmetrics/classification/dice.py b/src/torchmetrics/classification/dice.py index eb6b228778a..cbc8a84987e 100644 --- a/src/torchmetrics/classification/dice.py +++ b/src/torchmetrics/classification/dice.py @@ -116,9 +116,9 @@ class Dice(Metric): kwargs: Additional keyword arguments, see :ref:`Metric kwargs` for more info. .. warning:: - The `dice` metrics is being deprecated from the classification subpackage in v1.6.0 of torchmetrics and will be - removed in v1.7.0. Please instead consider using `f1score` metric from the classification subpackage as it - provides the same functionality. Additionally, we are going to re-add the `dice` metric in the segmentation + The ``dice`` metrics is being deprecated from the classification subpackage in v1.6.0 of torchmetrics and will be + removed in v1.7.0. Please instead consider using ``f1score`` metric from the classification subpackage as it + provides the same functionality. Additionally, we are going to re-add the ``dice`` metric in the segmentation domain in v1.6.0 with slight modifications to functionality. Raises: diff --git a/src/torchmetrics/functional/classification/dice.py b/src/torchmetrics/functional/classification/dice.py index 3aa26212fa5..5c08a028572 100644 --- a/src/torchmetrics/functional/classification/dice.py +++ b/src/torchmetrics/functional/classification/dice.py @@ -152,9 +152,9 @@ def dice( than what they appear to be. .. warning:: - The `dice` metrics is being deprecated from the classification subpackage in v1.6.0 of torchmetrics and will be - removed in v1.7.0. Please instead consider using `f1score` metric from the classification subpackage as it - provides the same functionality. Additionally, we are going to re-add the `dice` metric in the segmentation + The ``dice`` metrics is being deprecated from the classification subpackage in v1.6.0 of torchmetrics and will be + removed in v1.7.0. Please instead consider using ``f1score`` metric from the classification subpackage as it + provides the same functionality. Additionally, we are going to re-add the ``dice`` metric in the segmentation domain in v1.6.0 with slight modifications to functionality. Return: