| 11 | |
| 12 | @dataclass |
| 13 | class PlayerGameProfile: |
| 14 | player_id: str |
| 15 | model_name: str |
| 16 | game_id: str |
| 17 | wins: int = 0 |
| 18 | count: int = 0 |
| 19 | |
| 20 | @property |
| 21 | def win_rate(self) -> float: |
| 22 | return self.wins / self.count if self.count > 0 else 0.0 |
| 23 | |
| 24 | |
| 25 | def main(log_dir: Path): |