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

Function main

experiments/analysis/analyze_human_score_correlation.py:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144
145def main() -> None:
146 args = parse_args()
147 pairs = read_scores(Path(args.input_csv), args.auto_column, args.human_column)
148 if len(pairs) < 3:
149 raise SystemExit("Need at least 3 paired scores for correlation analysis.")
150 result = build_result(pairs, args.bootstrap, args.seed)
151 print(json.dumps(result, ensure_ascii=False, indent=2))
152 if args.output_json:
153 Path(args.output_json).write_text(json.dumps(result, ensure_ascii=False, indent=2), encoding="utf-8")
154 if args.output_md:
155 write_markdown(Path(args.output_md), result)
156
157
158if __name__ == "__main__":

Calls 4

read_scoresFunction · 0.85
build_resultFunction · 0.85
parse_argsFunction · 0.70
write_markdownFunction · 0.70

Tested by

no test coverage detected