Skip to content

Commit

Permalink
Add py func links to API docstrings for categorical scores
Browse files Browse the repository at this point in the history
  • Loading branch information
Steph-Chong committed Sep 17, 2024
1 parent 8e36cb9 commit 907934f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/scores/categorical/contingency_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def sensitivity(self) -> xr.DataArray:

def specificity(self) -> xr.DataArray:
"""
Identical to true negative rate.
Identical to :py:func:`true_negative_rate`.
The probability that an observed non-event will be correctly predicted.
Expand All @@ -654,7 +654,7 @@ def specificity(self) -> xr.DataArray:

def true_negative_rate(self) -> xr.DataArray:
"""
Identical to specificity.
Identical to :py:func:`specificity`.
The probability that an observed non-event will be correctly predicted.
Expand Down Expand Up @@ -745,7 +745,7 @@ def f1_score(self) -> xr.DataArray:

def equitable_threat_score(self) -> xr.DataArray:
"""
Identical to the Gilbert Skill Score.
Identical to :py:func:`gilberts_skill_score`.
Calculates the Equitable threat score.
Expand Down Expand Up @@ -786,7 +786,7 @@ def equitable_threat_score(self) -> xr.DataArray:

def gilberts_skill_score(self) -> xr.DataArray:
"""
Identical to the equitable threat scores
Identical to :py:func:`equitable_threat_score`.
Calculates the Gilbert skill score.
Expand Down Expand Up @@ -823,7 +823,7 @@ def gilberts_skill_score(self) -> xr.DataArray:

def heidke_skill_score(self) -> xr.DataArray:
"""
Identical to Cohen's Kappa
Identical to :py:func:`cohens_kappa`.
Calculates the Heidke skill score.
Expand Down Expand Up @@ -872,7 +872,7 @@ def heidke_skill_score(self) -> xr.DataArray:

def cohens_kappa(self) -> xr.DataArray:
"""
Identical to the Heidke skill score.
Identical to :py:func:`heidke_skill_score`.
Calculates Cohen's kappa.
Expand Down Expand Up @@ -964,7 +964,7 @@ def odds_ratio(self) -> xr.DataArray:

def odds_ratio_skill_score(self) -> xr.DataArray:
"""
Identical to Yule's Q.
Identical to :py:func:`yules_q`.
Calculates the odds ratio skill score.
Expand Down Expand Up @@ -1005,7 +1005,7 @@ def odds_ratio_skill_score(self) -> xr.DataArray:

def yules_q(self) -> xr.DataArray:
"""
Identical to the odds ratio skill score.
Identical to :py:func:`odds_ratio_skill_score`.
Calculates the Yule's Q.
Expand Down

0 comments on commit 907934f

Please sign in to comment.