exp#

jeanspy.sampler_numpyro.ParameterSpec.exp

Class and construction: ParameterSpec.

classmethod ParameterSpec.exp(sample_name, distribution, *, param_name=None, deterministic_name=None)[source]#

Construct a specification whose physical value is exp(sample_value).

sample_name identifies the NumPyro site and distribution is its prior in natural-logarithmic coordinates. Optional param_name chooses the physical dictionary key; deterministic_name chooses the recorded physical site. Returns a ParameterSpec with deterministic recording enabled. The distribution is not a prior on the exponentiated value.

Parameters:
  • sample_name (str)

  • distribution (Any)

  • param_name (str | None)

  • deterministic_name (str | None)

Return type:

jeanspy.sampler_numpyro.ParameterSpec