-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] Classification 3/n (#1145)
* fbeta init structure * working fbeta binary, multilabel * precision and recall functional * refactor testing * working fbeta in all cases * working precision recall with tests * formatting * docs * init files * fix stat score docstring * docstrings * flake8 * add link * fix integer division * Apply suggestions from code review * Apply suggestions from code review * docs * fix docs? * naming mistake * remove duplicate * fix docs * try fixing tests * docs * fix tests * docs * docs * try again * try again * again * again * please fix * please solve Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Jirka <jirka.borovec@seznam.cz>
- Loading branch information
1 parent
f499910
commit 2179495
Showing
24 changed files
with
4,661 additions
and
833 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,62 @@ | ||
.. customcarditem:: | ||
:header: F1 Score | ||
:header: F-1 Score | ||
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg | ||
:tags: Classification | ||
|
||
######## | ||
F1 Score | ||
######## | ||
######### | ||
F-1 Score | ||
######### | ||
|
||
Module Interface | ||
________________ | ||
|
||
F1Score | ||
^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.F1Score | ||
:noindex: | ||
|
||
BinaryF1Score | ||
^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.BinaryF1Score | ||
:noindex: | ||
|
||
MulticlassF1Score | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.MulticlassF1Score | ||
:noindex: | ||
|
||
MultilabelF1Score | ||
^^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.MultilabelF1Score | ||
:noindex: | ||
|
||
Functional Interface | ||
____________________ | ||
|
||
f1_score | ||
^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.f1_score | ||
:noindex: | ||
|
||
binary_f1_score | ||
^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.binary_f1_score | ||
:noindex: | ||
|
||
multiclass_f1_score | ||
^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.multiclass_f1_score | ||
:noindex: | ||
|
||
multilabel_f1_score | ||
^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.multilabel_f1_score | ||
: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,64 @@ | ||
.. customcarditem:: | ||
:header: FBeta Score | ||
:header: F-Beta Score | ||
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/tabular_classification.svg | ||
:tags: Classification | ||
|
||
.. include:: ../links.rst | ||
|
||
########### | ||
FBeta Score | ||
########### | ||
############ | ||
F-Beta Score | ||
############ | ||
|
||
Module Interface | ||
________________ | ||
|
||
FBetaScore | ||
^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.FBetaScore | ||
:noindex: | ||
|
||
BinaryFBetaScore | ||
^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.BinaryFBetaScore | ||
:noindex: | ||
|
||
MulticlassFBetaScore | ||
^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.MulticlassFBetaScore | ||
:noindex: | ||
|
||
MultilabelFBetaScore | ||
^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autoclass:: torchmetrics.MultilabelFBetaScore | ||
:noindex: | ||
|
||
Functional Interface | ||
____________________ | ||
|
||
fbeta_score | ||
^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.fbeta_score | ||
:noindex: | ||
|
||
binary_fbeta_score | ||
^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.binary_fbeta_score | ||
:noindex: | ||
|
||
multiclass_fbeta_score | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.multiclass_fbeta_score | ||
:noindex: | ||
|
||
multilabel_fbeta_score | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. autofunction:: torchmetrics.functional.multilabel_fbeta_score | ||
: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
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.