sppl icon indicating copy to clipboard operation
sppl copied to clipboard

Implement multi-variable environment in spn.Product

Open fsaad opened this issue 5 years ago • 1 comments

https://github.com/probcomp/sum-product-dsl/blob/c482341d04ef35febefc46f8821350e9236e8013/src/spn.py#L409-L413

  1. The multivariable transform must be of type event.
  2. If a condition or logprob query has multivariate symbol, then we cannot call logprob_factored on the children. Instead, we need to reassemble the query post-substitution and call self.logprob on the new query, which will take care of converting it to dnf, solving it, and factoring it again.

fsaad avatar Apr 29 '20 06:04 fsaad

Related https://github.com/probcomp/sppl/issues/92, since min/max can be of the form min(X1, X2, ..., Xn).

fsaad avatar Oct 27 '20 17:10 fsaad