Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simultaneous Updates #11

Open
WhiffleFish opened this issue Feb 12, 2024 · 0 comments
Open

Simultaneous Updates #11

WhiffleFish opened this issue Feb 12, 2024 · 0 comments

Comments

@WhiffleFish
Copy link
Owner

For simultaneous updates we currently traverse the tree separately for each player to accumulate regrets.

However, we can actually just update both players' regrets AND match regrets in a single tree traversal.

for t in 1:N
for i in 1:players(solver.game)
CFR(solver, ih, i, t)
end
regret_match!(solver)
cb()
next!(prog)
end

For reference:
https://github.com/maichmueller/cfrainbow/blob/1d4ecefc87f1566770b5b358303c5eee1aa97227/src/cfrainbow/cfr/cfr_vanilla.py#L28-L57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant