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

Maple maq_query returns empty set on some instances #1702

Open
hnisonoff opened this issue Nov 1, 2023 · 1 comment
Open

Maple maq_query returns empty set on some instances #1702

hnisonoff opened this issue Nov 1, 2023 · 1 comment

Comments

@hnisonoff
Copy link

Subject of the issue

For some MRF instances MPLP returns the empty set. The best_assignment is also empty.

Your environment

  • pgmpy version 0.1.24 (also tried 0.1.22, 0.1.19)
  • Python version 3.10.12
  • Operating System Linux

Steps to reproduce

Tell us how to reproduce this issue. Please provide a minimal reproducible code of
the issue you are facing if possible.
Not sure if this is expected behavior or not. If not, I can try to find a minimal example?

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

@hnisonoff
Copy link
Author

hnisonoff commented Nov 1, 2023

Update I was able to fix this by adding a tiny constant (1e-6) to all of the discrete factors. Not sure why this is necessary though.

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