9a4540b682074d3f84a2fc232cf2a832dc96bce7,src/aggregate_results.py,,latexify,#Any#Any#,92
Before Change
for run_name in results["valid"].keys():
for metric, scores in results["valid"][run_name].items():
res_str = "%s & %s & " % (run_name, metric)
metric_scores = [(k, v) for k, v in scores.items()]
metric_scores.sort(key=lambda x: x[0])
//res_str += "& ".join([average(scores[task]) for task in TASKS if task in scores])
res_str += " & ".join(["%.3f" % average(scores[k]) for (k, _) in metric_scores])
res_str += " \\\\\n"
fh.write(res_str)
// aggregated results
After Change
with open(out_file, "w") as fh:
header = "run & metric & "
run_order, metric_order, task_order = get_orders(results)
header += " & ".join(task_order) + " \\\\\n"
header += "\\hline\n"
fh.write(header)
for run_name in run_order:
for metric in metric_order:
if not len(results["valid"][run_name][metric]):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances Project Name: jsalt18-sentence-repl/jiant
Commit Name: 9a4540b682074d3f84a2fc232cf2a832dc96bce7
Time: 2018-01-19
Author: wang.alex.c@gmail.com
File Name: src/aggregate_results.py
Class Name:
Method Name: latexify
Project Name: pymc-devs/pymc3
Commit Name: f5d6842b017014afd756ab5441dbc154658c1515
Time: 2010-01-10
Author: fonnesbeck@smoltz-wireless.otago.ac.nz
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: _initialize
Project Name: pyinstaller/pyinstaller
Commit Name: b63f5195a697e8827d62c45163912c27574b388d
Time: 2016-01-29
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: PyiModuleGraph
Method Name: _make_toc
Project Name: pyinstaller/pyinstaller
Commit Name: f9c15b5896e3111a6c0e908af3b65aa7bcaab846
Time: 2016-01-24
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/depend/analysis.py
Class Name: PyiModuleGraph
Method Name: _make_toc