Skip to content

Commit 14e597c

Browse files
authored
DOC Fix syntax in model_evaluation UG (scikit-learn#16410)
1 parent 09bd9ee commit 14e597c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

doc/modules/model_evaluation.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,10 @@ Confusion matrix
555555
----------------
556556

557557
The :func:`confusion_matrix` function evaluates
558-
classification accuracy by computing the confusion matrix
559-
with each row corresponding to the true class
560-
<https://en.wikipedia.org/wiki/Confusion_matrix>`_.
561-
(Wikipedia and other references may use different convention for axes.)
562-
558+
classification accuracy by computing the `confusion matrix
559+
<https://en.wikipedia.org/wiki/Confusion_matrix>`_ with each row corresponding
560+
to the true class (Wikipedia and other references may use different convention
561+
for axes).
563562

564563
By definition, entry :math:`i, j` in a confusion matrix is
565564
the number of observations actually in group :math:`i`, but
@@ -1699,7 +1698,7 @@ Discounted Cumulative Gain (DCG) and Normalized Discounted Cumulative Gain
16991698
(NDCG) are ranking metrics; they compare a predicted order to ground-truth
17001699
scores, such as the relevance of answers to a query.
17011700

1702-
from the Wikipedia page for Discounted Cumulative Gain:
1701+
From the Wikipedia page for Discounted Cumulative Gain:
17031702

17041703
"Discounted cumulative gain (DCG) is a measure of ranking quality. In
17051704
information retrieval, it is often used to measure effectiveness of web search
@@ -1735,8 +1734,8 @@ and the NDCG score is the DCG score divided by the DCG score obtained for
17351734

17361735
.. topic:: References:
17371736

1738-
* Wikipedia entry for Discounted Cumulative Gain:
1739-
https://en.wikipedia.org/wiki/Discounted_cumulative_gain
1737+
* `Wikipedia entry for Discounted Cumulative Gain
1738+
<https://en.wikipedia.org/wiki/Discounted_cumulative_gain>`_
17401739

17411740
* Jarvelin, K., & Kekalainen, J. (2002).
17421741
Cumulated gain-based evaluation of IR techniques. ACM Transactions on

0 commit comments

Comments
 (0)