Skip to content

Further explanation when Potentials have impact on posterior sampling #7744

Open
@williambdean

Description

@williambdean

When does the use of Potential have an impact on posterior predictive sampling?

pymc/pymc/model/core.py

Lines 2274 to 2278 in 6ef135b

Warnings
--------
Potential terms only influence probability-based sampling, such as ``pm.sample``, but not forward sampling like
``pm.sample_prior_predictive`` or ``pm.sample_posterior_predictive``. A warning is raised when doing forward
sampling with models containing Potential terms.

It seems like sampling distributions only given InferenceData.posterior samples would not be affected by Potentials. Is it possible to refrain from warning given
the variables being sampled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions