(TP, FP, FN)
return f1_score
compute f1
    :param TP_micro: number.e.g. 200
    :param FP_micro: number.e.g. 200
    :param FN_micro: number.e.g. 200
    :return: f1_score: a scalar
compute f1
    :param TP_micro: number.e.g. 200
    :param FP_micro: number.e.g. 200
    :param FN_micro: number.e.g. 200
    :return: f1_score: a scalar
compute f1 : param TP_micro : number . e . g . 200 : param FP_micro : number . e . g . 200 : param FN_micro : number . e . g . 200 : return : f1_score : a scalar
def compute_f1(TP, FP, FN):
    """
    compute f1
    :param TP_micro: number.e.g. 200
    :param FP_micro: number.e.g. 200
    :param FN_micro: number.e.g. 200
    :return: f1_score: a scalar
    """
    precison = TP / (TP + FP + small_value)
    recall = TP / (TP + FN + small_value)
    f1_score = (2 * precison * recall) / (precison + recall + small_value)

    return f1_score
def compute_f1 ( TP , FP , FN ) : precison = TP / ( TP + FP + small_value ) recall = TP / ( TP + FN + small_value ) f1_score = ( 2 * precison * recall ) / ( precison + recall + small_value ) return f1_score