def extract_macro_avg(report):
    """Extracts macro avg fscore from sklearn's classification report"""
    for item in report.split("\n"):
        if "macro avg" in item:
            return float(item.strip().split()[4])