def write_per_generation_scores()

in src/genetic_algorithm.py [0:0]


def write_per_generation_scores(guid, per_generation_best_scores):
    # this function is helpful for debugging purposes, since it shows the progression
    # of the GA over time.  It's not needed for the main functioning.
    outfile_path = f'results/{guid}_score-per_gen.csv'
    f = open(outfile_path, "w")
    gen = 0
    for score in per_generation_best_scores:
        gen += 1
        f.write(f'{gen}, {score}')
        f.write("\n")
    f.close()