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

Marginalize Discrete Modes #1985

Merged
merged 13 commits into from
Jan 22, 2025
Merged

Marginalize Discrete Modes #1985

merged 13 commits into from
Jan 22, 2025

Conversation

varunagrawal
Copy link
Collaborator

@varunagrawal varunagrawal commented Jan 21, 2025

Add a flag to HybridBayesNet::prune which enables dead mode removal.

Here, we check if a certain discrete mode is only a single value. If so, we remove it from the pruned joint discrete conditional, as well as convert all HybridGaussianConditionals which only depend on the dead modes to a GaussianConditional.

@varunagrawal varunagrawal marked this pull request as ready for review January 22, 2025 01:44
@varunagrawal varunagrawal requested a review from dellaert January 22, 2025 01:44
@varunagrawal varunagrawal changed the title Remove Dead Nodes Marginalize Discrete Modes Jan 22, 2025
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

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

Amazing. Just some small comments

@varunagrawal varunagrawal merged commit 8327812 into develop Jan 22, 2025
35 checks passed
@varunagrawal varunagrawal deleted the hbn-tests branch January 22, 2025 18:26
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