def save_results(predictions, filename):
    """Given a vector of predictions, save results in CSV format."""
    with open(filename, 'w') as f:
        f.write("id,ACTION\n")
        for i, pred in enumerate(predictions):
            f.write("%d,%f\n" % (i + 1, pred))
dataset/ETHPy150Open kaz-Anova/ensemble_amazon/amazon_main_logit_3way_best.py/save_results/original