def evaluate_f1(tp: int, fp: int, fn: int) -> float:
    """F1-score.

    *F1-score* $=\dfrac{2TP}{2TP + FP + FN}$

    Args:
        tp: True Positives
        fp: False Positives
        fn: False Negatives
    """
    try:
        return 2 * tp / (2 * tp + fp + fn)
    except ZeroDivisionError:
        return 0.0