def write_acc_to_csv(acc, cats, conf, name):
    with open('results.csv', 'a', newline='') as csvf:
        csv_writer = csv.writer(csvf)
        csv_writer.writerow([name, 'Number of Passes:', NUM_ACC_PASSES, 'Accuracy'])
        csv_writer.writerow(['Statistic', 'Mean', 'STD'])
        csv_writer.writerow((['Accuracy'] + acc))
        for (key, values) in cats.items():
            csv_writer.writerow(([key] + values))
        for (key, values) in conf.items():
            csv_writer.writerow([key, values.mean(), values.std()])
def write_acc_to_csv(acc, cats, conf, name):
    with open('results.csv', 'a', newline=) as csvf:
        csv_writer = csv.writer(csvf)
        csv_writer.writerow([name, 'Number of Passes:', NUM_ACC_PASSES, 'Accuracy'])
        csv_writer.writerow(['Statistic', 'Mean', 'STD'])
        csv_writer.writerow((['Accuracy'] + acc))
        for (key, values) in cats.items():
            csv_writer.writerow(([key] + values))
        for (key, values) in conf.items():
            csv_writer.writerow([key, values.mean(), values.std()])