def write_average_score_row(fp, score_name, scores):
    """
    Simple utility function that writes an average score row in a file designated by a file pointer.

    Inputs:  - fp: A file pointer.
             - score_name: What it says on the tin.
             - scores: An array of average score values corresponding to each of the training set percentages.
    """
    row = "--" + score_name + "--"
    fp.write(row)
    for vector in scores:
        row = list(vector)
        row = [str(score) for score in row]
        row = "\n" + "\t".join(row)
        fp.write(row)