def main(): if args.dephase: file_name = evaluate(args.solution_name) file_name2 = evaluate(args.solution_name, no_initial_training=True) compare_evals(file_name, file_name2) else: num_iters = 1 if not args.multi else args.multi show = False if args.multi else True evals = [] for iteration_number in range(num_iters): if args.outfile and os.path.exists( args.outfile): # what if args.multi? raise OSError( 'The destination file already exists, move it or pick another name.' ) if args.count_epochs: file_name = count_epochs(args.solution_name) else: file_name = evaluate(args.solution_name) if args.outfile or args.multi: outname = file_name if not args.outfile else args.outfile if args.multi: outname += str(iteration_number) os.rename(file_name, outname) file_name = outname evals.append(file_name) if args.count_epochs: counter_plot(file_name, display=show) else: evaluation_plot(file_name, display=show) if args.multi: summarizer.sum_sum(evals)
def main(): if args.dephase: file_name = evaluate(args.solution_name) file_name2 = evaluate(args.solution_name, no_initial_training=True) compare_evals(file_name, file_name2) else: num_iters = 1 if not args.multi else args.multi show = False if args.multi else True evals = [] for iteration_number in range(num_iters): if args.outfile and os.path.exists(args.outfile): # what if args.multi? raise OSError('The destination file already exists, move it or pick another name.') if args.count_epochs: file_name = count_epochs(args.solution_name) else: file_name = evaluate(args.solution_name) if args.outfile or args.multi: outname = file_name if not args.outfile else args.outfile if args.multi: outname += str(iteration_number) os.rename(file_name, outname) file_name = outname evals.append(file_name) if args.count_epochs: counter_plot(file_name, display=show) else: evaluation_plot(file_name, display=show) if args.multi: summarizer.sum_sum(evals)
def comparison(): e1 = evaluate(args.solution_name) e2 = evaluate(args.compare_to) compare_evals(e1, e2)