Skip to content

Allow returning deterministic sites from guide in Predictive#3361

Open
OlaRonning wants to merge 4 commits intopyro-ppl:devfrom
aleatory-science:feature/pred_include_deter_sites
Open

Allow returning deterministic sites from guide in Predictive#3361
OlaRonning wants to merge 4 commits intopyro-ppl:devfrom
aleatory-science:feature/pred_include_deter_sites

Conversation

@OlaRonning
Copy link
Copy Markdown
Member

Related to #3358.

@OlaRonning OlaRonning added the WIP label Apr 22, 2024
"Found auxiliary vars in the model: {}".format(aux_vars & model_vars)
)
if not (guide_vars <= model_vars | aux_vars):
if not (guide_vars <= model_vars | aux_vars | det_vars):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fritzo, it looks like deterministic sites are currently treated as (auxiliary) sample sites in the guide when comparing the model to the guide. Do you know if this is the intended behavior? I assumed it wasn't and sketched the following solution.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @OlaRonning, I'm unsure as I seldom use predictive, preferring custom predictive utilities.

@fehiepsi do you have an opinion? It would be nice to keep similar behavior in pyro and numpyro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants