Skip to content

Commit d568533

Browse files
authored
Updated metrics/classification/precision_recall.py (#5348)
There was a typo in Documentation of Code of the ```compute()``` function of ```Recall``` metric at line 210. It said "Computes accuracy over state." which should have been "Computes recall over state."
1 parent a40e3a3 commit d568533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/metrics/classification/precision_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def update(self, preds: torch.Tensor, target: torch.Tensor):
207207

208208
def compute(self):
209209
"""
210-
Computes accuracy over state.
210+
Computes recall over state.
211211
"""
212212
if self.average == 'micro':
213213
return self.true_positives.sum().float() / (self.actual_positives.sum() + METRIC_EPS)

0 commit comments

Comments
 (0)