Precision and recall are the same overlap read with different denominators, which is exactly why :
Return a dict with keys "precision" and "recall". If a denominator is zero,
use 0.0 for that metric.
Input
tp = 10
fp = 10
fn = 30
Output
{'precision': 0.5, 'recall': 0.25}