def show_errors(cross_entropy_errors_by_fold, method="cross entropy", lower_is_better=True):
    print("Cross validation %s errors:" % (method) + str(cross_entropy_errors_by_fold))
    if lower_is_better:
        note = "(lower is better)"
    else:
        note = "(higher is better)"

    print((method, note, cross_entropy_errors_by_fold.mean(), cross_entropy_errors_by_fold.std() / 2) % "%s %s: %0.2f (+/- %0.2f)")
dataset/ETHPy150Open ianozsvald/social_media_brand_disambiguator/learn1_experiments_tfidfproper.py/show_errors/swapped operands of `%`