MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / _positions

Method _positions

codeclash/analysis/metrics/elo.py:754–755  ·  view source on GitHub ↗
(ranking: list[str])

Source from the content-addressed store, hash-verified

752 output_path = output_dir / f"{filename_base}.{fmt}"
753 plt.savefig(output_path, format=fmt, bbox_inches="tight", dpi=300 if fmt == "png" else None)
754 logger.info(f"Saved plot: {output_path}")
755
756 @staticmethod
757 def _elos_from_result(result: dict) -> dict[str, float]:
758 return {p: BradleyTerryFitter.bt_to_elo(s) for p, s in zip(result["players"], result["strengths"])}

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected