예제 #1
0
def plot_mentor_student_social(lonerFolder, mentorFolders, costname):
  pylab.clf()

  for folder in mentorFolders:
    filename = folder + '/mentor_social_' + costname + '.txt'
    plotting.plot_curve_from_filename(filename, 'mentor')
    filename = folder + '/student_social_' + costname + '.txt'
    plotting.plot_curve_from_filename(filename, 'student')

  pylab.legend()
  pylab.savefig('social_' + costname + ".png")
예제 #2
0
def plot_mentor_student_social(lonerFolder, mentorFolders, costname):
    pylab.clf()

    for folder in mentorFolders:
        filename = folder + '/mentor_social_' + costname + '.txt'
        plotting.plot_curve_from_filename(filename, 'mentor')
        filename = folder + '/student_social_' + costname + '.txt'
        plotting.plot_curve_from_filename(filename, 'student')

    pylab.legend()
    pylab.savefig('social_' + costname + ".png")
예제 #3
0
def main(argv):
    if len(argv) != 2:
        print """Usage: python plot_learning_curves.py "[('filename1','identifier1'), ...]"
    """
        sys.exit(1)
    # Plot for each (filename,identifier) in the argument
    curves = eval(argv[1])
    for (filename, identifier) in curves:
        plotting.plot_curve_from_filename(filename, identifier)

    #pylab.ylim(0.0,0.1)
    pylab.legend()
    pylab.savefig("figure.png")
예제 #4
0
def main(argv):
    if len(argv) != 2:
        print """Usage: python plot_learning_curves.py "[('filename1','identifier1'), ...]"
    """
        sys.exit(1)
    # Plot for each (filename,identifier) in the argument
    curves = eval(argv[1])
    for (filename, identifier) in curves:
        plotting.plot_curve_from_filename(filename, identifier)

    # pylab.ylim(0.0,0.1)
    pylab.legend()
    pylab.savefig("figure.png")