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:
parent
a40e3a325e
commit
d568533b6b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue