probcomp / hierarchical-irm

Probabilistic structure discovery for rich relational systems
Apache License 2.0
1 stars 1 forks source link

Enable `Distribution` to explicitly represent latents instead of marginalizing, and implement logp/logp_score with fixed latents. #56

Closed emilyfertig closed 1 week ago

emilyfertig commented 2 weeks ago

First, we will need a way for a Distribution (our in-code representation of a data model) to specify to the system whether it wants to explicitly represent its latents, or collapse (marginalize) them.

• For distributions that explicitly represent their latents, logp score should return the conditional likelihood of the accumulated data given the current value of the parameter θ, and logp should return the likelihood of a new datapoint x given θ

ThomasColthurst commented 1 week ago

Done in https://github.com/probcomp/hierarchical-irm/pull/67