Skip to content

Commit 2de3c46

Browse files
committed
fix: docstring for regexp_partial_precision
1 parent 29c9a36 commit 2de3c46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autointent/metrics/regexp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def regexp_partial_accuracy(y_true: LABELS_VALUE_TYPE, y_pred: LABELS_VALUE_TYPE
3838
- :math:`y_{\text{true},i}` is the true label for the :math:`i`-th sample,
3939
- :math:`y_{\text{pred},i}` is the predicted label for the :math:`i`-th sample,
4040
- :math:`\mathbb{1}(\text{condition})` is the indicator function that equals 1 if the condition
41-
is true and 0 otherwise.
41+
is true and 0 otherwise.
4242
4343
:param y_true: True values of labels
4444
:param y_pred: Predicted values of labels
@@ -68,8 +68,8 @@ def regexp_partial_precision(y_true: LABELS_VALUE_TYPE, y_pred: LABELS_VALUE_TYP
6868
- :math:`y_{\text{true},i}` is the true label for the :math:`i`-th sample,
6969
- :math:`y_{\text{pred},i}` is the predicted label for the :math:`i`-th sample,
7070
- :math:`|y_{\text{pred},i}|` is the number of predicted labels for the :math:`i`-th sample,
71-
- :math:`\\mathbb{1}(\text{condition})` is the indicator function that equals 1 if the condition
72-
is true and 0 otherwise.
71+
- :math:`\mathbb{1}(\text{condition})` is the indicator function that equals 1 if the condition
72+
is true and 0 otherwise.
7373
7474
:param y_true: True values of labels
7575
:param y_pred: Predicted values of labels

0 commit comments

Comments
 (0)