def add_taskwise_report(exp, args, header_config) : for i, algo in enumerate(args.SOLVERS) : ATTRIBUTES = get_attributes(header_config, algo) exp.add_report( TaskwiseReport( attributes = ATTRIBUTES, filter_algorithm=[basename(algo),]), name='TestReport'+str(i), outfile='report_'+str(i)+'.html')
for format in ["png", "tex"]: exp.add_report( ScatterPlotReport( attributes=["cost"], format=format, filter=only_two_algorithms, get_category=get_domain, scale="linear", matplotlib_options=matplotlib_options, ), outfile=os.path.join("plots", "scatter-domain." + format), ) exp.add_report( ComparativeReport([("lama11", "iter-hadd")], attributes=["coverage"]), name="report-compare", outfile="compare.html", ) exp.add_report( TaskwiseReport(attributes=["cost", "coverage"], filter_algorithm=["ipdb"]), name="report-taskwise", outfile="taskwise.html", ) exp.add_report(AbsoluteReport(), name="report-abs-p") exp.add_step("finished", call, ["echo", "Experiment", "finished."]) if __name__ == "__main__": exp.run_steps()
'lines.linewidth': 1, 'figure.figsize': [8, 8], # Width and height in inches. 'savefig.dpi': 100, } for format in ["png", "tex"]: exp.add_report(ScatterPlotReport(attributes=['cost'], format=format, filter=only_two_algorithms, get_category=get_domain, xscale='linear', yscale='linear', matplotlib_options=matplotlib_options), outfile=os.path.join('plots', 'scatter-domain.' + format)) exp.add_report(ComparativeReport([('lama11', 'iter-hadd')], attributes=['coverage']), name='report-compare', outfile='compare.html') exp.add_report(TaskwiseReport(attributes=['cost', 'coverage'], filter_algorithm=['ipdb']), name='report-taskwise', outfile='taskwise.html') exp.add_report(AbsoluteReport(), name='report-abs-p') exp.add_step('finished', call, ['echo', 'Experiment', 'finished.']) if __name__ == '__main__': exp.run_steps()