Skip to content

Commit

Permalink
docs: Fix math typo in confusion matrix (#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweber1 authored Jul 17, 2024
1 parent 98e7130 commit ab66665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torchmetrics/classification/confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class MulticlassConfusionMatrix(Metric):
- :math:`C_{i, i}` represents the number of true positives for class :math:`i`
- :math:`\sum_{j=1, j\neq i}^N C_{i, j}` represents the number of false negatives for class :math:`i`
- :math:`\sum_{i=1, i\neq j}^N C_{i, j}` represents the number of false positives for class :math:`i`
- :math:`\sum_{j=1, j\neq i}^N C_{j, i}` represents the number of false positives for class :math:`i`
- the sum of the remaining cells in the matrix represents the number of true negatives for class :math:`i`
As input to ``forward`` and ``update`` the metric accepts the following input:
Expand Down

0 comments on commit ab66665

Please sign in to comment.