Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Kendall Rank Correlation Coefficient (Kendall's tau) (#1271)
* wip * WIP: Overhaul * Do some polishing * WIP: Add class metric + another refactor * Add sorting for the other sequence to calcualte ties properly * Add hypothesis testing + links to docs * chlog * WIP: Add some tests * Fix dimension handling * Fix doctest * Add some docs + handle some mypy errors * Update docs + fix some mypy errors * Re-run mypy * Refactor: Separate calculate tau method * Refactor + Add variant c * Refactor: Internally, represent metric variant as enumerate * Add variant 'c' * Update docs * Fix a typo * Add testing for ddp=True and dist_sync_on_step=True options * Fix doctest * . * Fix tests for scipy<1.8.0 * Fix some stuff in docs * Add missing device placement * Fix some nits + add t-test examples to docs * Refactor: Move _check_data_shape_for_corr_coef to utils file * Fix a typo * Fix docs example for class metric * Try to fix docs * . * Use different link to check if works * sphinx: Ignore jstor link for linkcheck as cannot be accesed from python * Apply suggestions from code review Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
- Loading branch information
1 parent
0c66f03
commit ec27df1
Showing
14 changed files
with
784 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. customcarditem:: | ||
:header: Kendall Rank Correlation Coefficient | ||
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg | ||
:tags: Regression | ||
|
||
.. include:: ../links.rst | ||
|
||
####################### | ||
Kendal Rank Corr. Coef. | ||
####################### | ||
|
||
Module Interface | ||
________________ | ||
|
||
.. autoclass:: torchmetrics.KendallRankCorrCoef | ||
:noindex: | ||
|
||
Functional Interface | ||
____________________ | ||
|
||
.. autofunction:: torchmetrics.functional.kendall_rank_corrcoef | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.