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

added block and myopic entropy as properties of the MSP tree #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamimos
Copy link
Owner

to do this also had to add path_probability data to each node in the tree

to do this also had to add path_probability data to each node in the tree
@@ -29,6 +32,20 @@ class MixedStateTree:
def belief_states(self) -> Set[Float[np.ndarray, "num_states"]]:
return [x.state_prob_vector for x in self.nodes]

@property
def block_entropy(self) -> Float[np.ndarray, "depth"]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test plz

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

Successfully merging this pull request may close these issues.

2 participants