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."
This commit is contained in:
Abhik Banerjee 2021-01-05 18:45:06 +05:30 committed by GitHub
parent a40e3a325e
commit d568533b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)