def printLeaf(counts):
    """
    Returns the prediction values based on higher probability
    :param counts:  Dictionary of label counts
    :return:    Prediction
    """
    total = sum(counts.values()) * 1.0
    probs = {}
    for lbl in counts.keys():
        probs[lbl] = int(counts[lbl] / total * 100)
    maxprob = max(probs.values())  # Max probability label
    for key, value in probs.items():
        if value == maxprob:
            return key