From d568533b6ba0768ac7a6d028b3a25c5970a65e80 Mon Sep 17 00:00:00 2001 From: Abhik Banerjee <38981107+abhik-99@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:45:06 +0530 Subject: [PATCH] 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." --- 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 7e1f843b9c..6c2bf64a1e 100644 --- a/pytorch_lightning/metrics/classification/precision_recall.py +++ b/pytorch_lightning/metrics/classification/precision_recall.py @@ -207,7 +207,7 @@ class Recall(Metric): 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)