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

Function main

experiments/human_eval/aggregate_drift_human_eval.py:121–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120
121def main() -> None:
122 args = parse_args()
123 output_dir = Path(args.output_dir)
124 scored = build_scored_rows(common.read_csv(Path(args.blind_csv)), common.read_csv(Path(args.key_csv)))
125 event_scores = aggregate_event_scores(scored)
126 method_scores = aggregate_method_scores(event_scores)
127 common.write_csv(output_dir / "drift_human_eval_scored_papers.csv", scored)
128 common.write_csv(output_dir / "drift_human_eval_event_scores.csv", event_scores)
129 common.write_csv(output_dir / "drift_human_eval_method_summary.csv", method_scores)
130 print(f"Scored papers: {output_dir / 'drift_human_eval_scored_papers.csv'}")
131 print(f"Event scores: {output_dir / 'drift_human_eval_event_scores.csv'}")
132 print(f"Method summary: {output_dir / 'drift_human_eval_method_summary.csv'}")
133
134
135if __name__ == "__main__":

Callers 1

Calls 4

build_scored_rowsFunction · 0.85
aggregate_event_scoresFunction · 0.85
parse_argsFunction · 0.70
aggregate_method_scoresFunction · 0.70

Tested by

no test coverage detected