PlaceholderSample#

class dynode.config.placeholder_sample.PlaceholderSample#

Bases: Distribution

A parameter that draws its values from an external set of samples.

__init__()#

Create a PlaceholderSample distribution.

Methods

__init__()

Create a PlaceholderSample distribution.

sample(_[, sample_shape])

Retrieve sample from an external set of samples.

Attributes

sample(_, sample_shape=())#

Retrieve sample from an external set of samples.

Raises#

SamplePosteriorError

if sample is called outside of an in-place substitute context like numpyro.handlers.substitute() or numpyro.infer.Predictive.