Skip to content

Commit b5a2afd

Browse files
s-rogteddykoker
andauthored
Remove beta arg from F1 class and functional (#5076)
* remove beta from F1 * remove from functional Co-authored-by: Teddy Koker <[email protected]>
1 parent 0de43d1 commit b5a2afd

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

pytorch_lightning/metrics/classification/f_beta.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ class F1(FBeta):
212212
def __init__(
213213
self,
214214
num_classes: int = 1,
215-
beta: float = 1.0,
216215
threshold: float = 0.5,
217216
average: str = "micro",
218217
multilabel: bool = False,

pytorch_lightning/metrics/functional/f_beta.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def f1(
110110
preds: torch.Tensor,
111111
target: torch.Tensor,
112112
num_classes: int,
113-
beta: float = 1.0,
114113
threshold: float = 0.5,
115114
average: str = "micro",
116115
multilabel: bool = False

0 commit comments

Comments
 (0)