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

Implement MMAP #7

Closed
GiggleLiu opened this issue Aug 7, 2022 · 1 comment · Fixed by #9
Closed

Implement MMAP #7

GiggleLiu opened this issue Aug 7, 2022 · 1 comment · Fixed by #9
Labels
enhancement New feature or request

Comments

@GiggleLiu
Copy link
Member

GiggleLiu commented Aug 7, 2022

It requires a mixed use of floating point numbers and Tropical numbers:

MMAP : computing the most likely assignment to the query variables, $X_M \subset X'$ after marginalizing out the remaining variables $X_S = X' \setminus X_M$.

$$\begin{align} MMAP(X_i|E=e) = \arg \max_{X_M} \sum_{X_S} \prod_{F} f(x_M, x_S, e) \end{align}$$
@GiggleLiu GiggleLiu added the enhancement New feature or request label Aug 7, 2022
@GiggleLiu
Copy link
Member Author

Proposal

We first marginalize $X_S$ with real numbers, the contraction result is a set of tensors. Then we contract the remaining tensor network with tropical algebra.

  1. find clusters connected by hyper-edges in $X_S$,
  2. optimize the contraction order for each cluster,
  3. contract each cluster with real numbers,
  4. optimize the clusters contraction order,
  5. contract the clusters with logged tropical numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant