Add option to store all world states in information state tree#1074
Merged
lanctot merged 4 commits intogoogle-deepmind:masterfrom Jan 21, 2026
Merged
Conversation
Contributor
Author
|
Hi @lanctot, when in Rome of old PRs: what is your view on this one? |
Collaborator
|
Ah yes, good. Straight-forward, should be doable. Can you also rebase to make it current, if you haven't already? |
a14b01a to
b969a1a
Compare
Contributor
Author
|
should this be merged, i would need to update the bindings in #1054 to expose the feature as well |
Collaborator
|
Ok let's do this one first and you can then update #1054 with a pull from master once it's in. |
Collaborator
|
Here is an example of things we'd still need to catch in #1071 found when importing this PR.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a boolean flag to the constructor of the infostate tree to allow storing the corresponding world states and chance reach probability not just at the leaf nodes, but all infostate nodes (except filler nodes).
In particular, this change allows to attain an inverse mapping of info state to world states when traversing a player's infostate tree.
The changes are:
InfostateTreeclassis_filler_node()check toInfostateNodeclass to query nodechild_atmethod ofInfostateNodeto choose to skip filler nodes viaboolflagconst std::string&withstd::string_viewin a couple of appropriate places ininfostate_tree.(h|cpp)An example output of traversing player 0's infostate tree of 2-player Kuhn Poker (skipping filler nodes):