Skip to content

Commit

Permalink
minor modification to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kzkadc committed Sep 3, 2024
1 parent febc200 commit 0232b9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/metrics/regression/kendall_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class KendallRankCorrelation(EpochMetric):
are said to be concordant when both :math:`P_i<P_j` and :math:`A_i<A_j` holds
or both :math:`P_i>P_j` and :math:`A_i>A_j`.
The ``number of discordant pairs`` counts the number of pairs that are not concordant.
The `number of discordant pairs` counts the number of pairs that are not concordant.
The computation of this metric is implemented with
`scipy.stats.kendalltau <https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.kendalltau.html>`_.
Expand Down
3 changes: 2 additions & 1 deletion ignite/metrics/regression/spearman_correlation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class SpearmanRankCorrelation(EpochMetric):
.. math::
r_\text{s} = \text{Corr}[R[P], R[A]] = \frac{\text{Cov}[R[P], R[A]]}{\sigma_{R[P]} \sigma_{R[A]}}
where :math:`A` and :math:`P` are the ground truth and predicted value, and R[X] is the ranking value of X.
where :math:`A` and :math:`P` are the ground truth and predicted value,
and :math:`R[X]` is the ranking value of :math:`X`.
The computation of this metric is implemented with
`scipy.stats.spearmanr <https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html>`_.
Expand Down

0 comments on commit 0232b9f

Please sign in to comment.