This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Counterfactuals make inference customization difficult #81
Labels
You can continue the conversation there. Go to discussion →
Models expanded by
MultiWorldCounterfactual
introduce plates automatically in a way that's hard to anticipate, and may mangle names of sample sites, e.g. by reusingobs_mask
frompyro.sample
to designate which copies of a particular variable are observed or unobserved (see #55 ). This makes it difficult to write custom guides or other custom inference components for estimating causal effects.Most of the release examples (including the CEVAE #11) currently use autoguides or exact inference to get around this. Maybe that's just the recommendation we should be giving, including by using fancier autoguides like
AutoStructured
in more advanced examples? If so, we should discuss this explicitly somewhere in the documentation.Alternatively, maybe there's a generic way to transform a guide that's correct for an unexpanded model into one that's correct for the expanded version, or documentation we could provide about customizing inference in this setting?
The text was updated successfully, but these errors were encountered: