Skip to content

Commit 7cb004d

Browse files
themrzmasterchkoar
authored andcommitted
DOC Fix specificity_score docstring (#592)
1 parent 44ac642 commit 7cb004d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

imblearn/metrics/_classification.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,9 @@ def specificity_score(y_true,
368368
sample_weight=None):
369369
"""Compute the specificity
370370
371-
The specificity is the ratio ``tp / (tp + fn)`` where ``tp`` is the number
372-
of true positives and ``fn`` the number of false negatives. The specificity
373-
is intuitively the ability of the classifier to find all the positive
374-
samples.
371+
The specificity is the ratio ``tn / (tn + fp)`` where ``tn`` is the number
372+
of true negatives and ``fn`` the number of false negatives. The specificity
373+
quantifies the ability to avoid false positives_[1].
375374
376375
The best value is 1 and the worst value is 0.
377376

0 commit comments

Comments
 (0)