Skip to content

Commit

Permalink
typo in reinforcement_policy_trainer; fixes #161
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongu committed Sep 21, 2016
1 parent d4f03c5 commit 8cdd4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AlphaGo/training/reinforcement_policy_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run_n_games(optimizer, learner, opponent, num_games):
current, other = other, current

# Return the win ratio.
wins = sum(state.get_winner == pc for (state, pc) in zip(states, learner_color))
wins = sum(state.get_winner() == pc for (state, pc) in zip(states, learner_color))
return float(wins) / num_games


Expand Down

0 comments on commit 8cdd4aa

Please sign in to comment.