sample#

jeanspy.sampler_numpyro.ParameterSpec.sample

Class and construction: ParameterSpec.

ParameterSpec.sample()[source]#

Create the NumPyro sample site and return its named physical value.

Returns (resolved parameter name, transformed value). The distribution is defined in sample coordinates; transform is then applied and, when configured, a deterministic site records the physical value. Execute under NumPyro inference or a seeded handler. Units/shapes follow the distribution and physical transform.

Return type:

tuple[str, Any]