(ranking: list[str])
| 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"])} |