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

output is marginal probability #3

Open
CHUNYUWANG opened this issue Feb 22, 2021 · 2 comments
Open

output is marginal probability #3

CHUNYUWANG opened this issue Feb 22, 2021 · 2 comments

Comments

@CHUNYUWANG
Copy link

Thanks for releasing the code!

When I played with the code in the following file
https://github.com/vene/sparsemap/blob/master/python/sparsemap/layers_pt/matching_layer.py

The output is a matrix. Does it represent the marginal probability for each matching?

How do you compute this marginal probability according to a sparse number of structures? Sum them?

@vene
Copy link
Owner

vene commented Feb 22, 2021

Yes, you can think of that output as "sparse marginals", they are denoted by u in the paper.
Indeed it is an expectation over a sparse distribution over structures, so it is also sparse.

By the way, you might be interested in the updated project and newer paper that works in arbitrary factor graphs (generalizing this):

https://github.com/deep-spin/lp-sparsemap

@Rongzihan
Copy link

Thanks for the code release!

BTW, for the example given here https://github.com/vene/sparsemap/blob/master/python/sparsemap/layers_pt/matching_layer.py may I know how to do iterations to the output "matching" here? From my understanding, this example only do one time calculation, is this correct?

If I want to do many iterations to get the final u and the u in different steps, how to calculate it? Thnaks!

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

3 participants