Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docs metrics formatting #5077

Merged
merged 8 commits into from
Dec 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pytorch_lightning/metrics/classification/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ class FBeta(Metric):
Threshold value for binary or multi-label logits. default: 0.5

average:
* `'micro'` computes metric globally
* `'macro'` computes metric for each class and uniformly averages them
* `'weighted'` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
* `None` computes and returns the metric per class
- ``'micro'`` computes metric globally
- ``'macro'`` computes metric for each class and uniformly averages them
- ``'weighted'`` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
- ``'none'`` computes and returns the metric per class

multilabel: If predictions are from multilabel classification.
compute_on_step:
Expand Down Expand Up @@ -185,11 +185,11 @@ class F1(FBeta):
Threshold value for binary or multi-label logits. default: 0.5

average:
* `'micro'` computes metric globally
* `'macro'` computes metric for each class and uniformly averages them
* `'weighted'` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
* `None` computes and returns the metric per class
- ``'micro'`` computes metric globally
- ``'macro'`` computes metric for each class and uniformly averages them
- ``'weighted'`` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
- ``'none'`` computes and returns the metric per class

multilabel: If predictions are from multilabel classification.
compute_on_step:
Expand Down
20 changes: 10 additions & 10 deletions pytorch_lightning/metrics/functional/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def fbeta(
Threshold value for binary or multi-label logits. default: 0.5

average:
* `'micro'` computes metric globally
* `'macro'` computes metric for each class and uniformly averages them
* `'weighted'` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
* `None` computes and returns the metric per class
- ``'micro'`` computes metric globally
- ``'macro'`` computes metric for each class and uniformly averages them
- ``'weighted'`` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
- ``'none'`` computes and returns the metric per class

multilabel: If predictions are from multilabel classification.

Expand Down Expand Up @@ -136,11 +136,11 @@ def f1(
Threshold value for binary or multi-label logits. default: 0.5

average:
* `'micro'` computes metric globally
* `'macro'` computes metric for each class and uniformly averages them
* `'weighted'` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
* `None` computes and returns the metric per class
- ``'micro'`` computes metric globally
- ``'macro'`` computes metric for each class and uniformly averages them
- ``'weighted'`` computes metric for each class and does a weighted-average,
where each class is weighted by their support (accounts for class imbalance)
- ``'none'`` computes and returns the metric per class

multilabel: If predictions are from multilabel classification.

Expand Down