MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / main

Function main

experiments/human_eval/aggregate_model_human_eval.py:184–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183
184def main() -> None:
185 args = parse_args()
186 output_dir = Path(args.output_dir)
187 scored = build_scored_reports(common.read_csv(Path(args.blind_csv)), common.read_csv(Path(args.key_csv)))
188 auto_lookup = load_auto_summary(Path(args.auto_summary_csv)) if args.auto_summary_csv else None
189 summary = aggregate_model_scores(scored, auto_lookup)
190 common.write_csv(output_dir / "model_human_eval_scored_reports.csv", scored)
191 common.write_csv(output_dir / "model_human_eval_model_summary.csv", summary)
192 print(f"Scored reports: {output_dir / 'model_human_eval_scored_reports.csv'}")
193 print(f"Model summary: {output_dir / 'model_human_eval_model_summary.csv'}")
194
195
196if __name__ == "__main__":

Callers 1

Calls 4

build_scored_reportsFunction · 0.85
load_auto_summaryFunction · 0.85
aggregate_model_scoresFunction · 0.85
parse_argsFunction · 0.70

Tested by

no test coverage detected