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

Improve variable groups; Make variable groups and factor groups hashable; Fix mypy errors #51

Merged
merged 11 commits into from
Aug 11, 2021

Conversation

StannisZhou
Copy link
Contributor

@StannisZhou StannisZhou commented Aug 11, 2021

Resolves #36, #40 and #42

@NishanthJKumar I checked that sanity check example still runs fine, but I didn't check whether the results are still valid. Would be great if you can check (e.g. apply your previous "unit test", or rather an integration test). Also I don't have the heretic model code in my branch so also didn't check if the PairwiseFactorGroup changes break anything.

As a general comment, we should in the future make more efforts to figure out why mypy is complaining instead of using # type: ignore extensively 😁

Copy link
Contributor

@NishanthJKumar NishanthJKumar left a comment

Choose a reason for hiding this comment

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

LGTM after minor fix addressed! Thanks so much for figuring out the mypy issues in particular - will be sure to be more thorough with these errors in the future!

I also ran both the sanity check and heretic example to verify correctness - things seem to work!

pgmax/fg/groups.py Outdated Show resolved Hide resolved
mypy.ini Show resolved Hide resolved
Co-authored-by: Nishanth Kumar <[email protected]>
@StannisZhou StannisZhou merged commit 2b11c7f into vicariousinc:master Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants