From 15e5c706e2dfc383888b02f1c7bd90da2cee4706 Mon Sep 17 00:00:00 2001 From: Abhik Banerjee <38981107+abhik-99@users.noreply.github.com> Date: Tue, 5 Jan 2021 00:07:18 +0530 Subject: [PATCH] Updated metrics/classification/precision_recall.py 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." --- pytorch_lightning/metrics/classification/precision_recall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/metrics/classification/precision_recall.py b/pytorch_lightning/metrics/classification/precision_recall.py index 7e1f843b9c331..6c2bf64a1ecfc 100644 --- a/pytorch_lightning/metrics/classification/precision_recall.py +++ b/pytorch_lightning/metrics/classification/precision_recall.py @@ -207,7 +207,7 @@ def update(self, preds: torch.Tensor, target: torch.Tensor): def compute(self): """ - Computes accuracy over state. + Computes recall over state. """ if self.average == 'micro': return self.true_positives.sum().float() / (self.actual_positives.sum() + METRIC_EPS)