Skip to content

Commit

Permalink
Remove beta arg from F1 class and functional (Lightning-AI#5076)
Browse files Browse the repository at this point in the history
* remove beta from F1

* remove from functional

Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
  • Loading branch information
s-rog and teddykoker authored Dec 12, 2020
1 parent 0de43d1 commit b5a2afd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pytorch_lightning/metrics/classification/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ class F1(FBeta):
def __init__(
self,
num_classes: int = 1,
beta: float = 1.0,
threshold: float = 0.5,
average: str = "micro",
multilabel: bool = False,
Expand Down
1 change: 0 additions & 1 deletion pytorch_lightning/metrics/functional/f_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def f1(
preds: torch.Tensor,
target: torch.Tensor,
num_classes: int,
beta: float = 1.0,
threshold: float = 0.5,
average: str = "micro",
multilabel: bool = False
Expand Down

0 comments on commit b5a2afd

Please sign in to comment.