examples/research_projects/deebert/run_glue_deebert.py/get_wanted_result
def get_wanted_result(result):
    if "spearmanr" in result:
        print_result = result["spearmanr"]
    elif "f1" in result:
        print_result = result["f1"]
    elif "mcc" in result:
        print_result = result["mcc"]
    elif "acc" in result:
        print_result = result["acc"]
    else:
        raise ValueError("Primary metric unclear in the results")
    return print_result