Skip to content

Commit

Permalink
Merge pull request #256 from huangshiyu13/main
Browse files Browse the repository at this point in the history
fix typo: change loss rate to lose rate
  • Loading branch information
huangshiyu13 authored Oct 23, 2023
2 parents a18ec33 + c7f8f3a commit f96e77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openrl/selfplay/selfplay_api/opponent_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_battle_info(self) -> Dict[str, Any]:
result = {}
result["win_rate"] = float(self.num_wins) / max(self.num_games, 1)
result["draw_rate"] = float(self.num_draws) / max(self.num_games, 1)
result["loss_rate"] = float(self.num_losses) / max(self.num_games, 1)
result["lose_rate"] = float(self.num_losses) / max(self.num_games, 1)
result["total_games"] = self.num_games
return result

Expand Down

0 comments on commit f96e77f

Please sign in to comment.