jesterTOV.inference.base.prior.SequentialTransformPrior#
- class SequentialTransformPrior(base_prior, transforms)[source]#
Bases:
PriorTransform a prior distribution by applying a sequence of transforms.
Note: This class follows the Jim/jimgw architecture.
The space before the transform is named as x, and the space after the transform is named as z.
Methods
__init__(base_prior, transforms)add_name(x)Turn an array into a dictionary.
log_prob(z)Evaluate the probability of the transformed variable z.
sample(rng_key, n_samples)Sample from the transformed prior.
transform(x)Apply forward transforms to x.
Attributes
n_dimparameter_namescomposite- log_prob(z)[source]#
Evaluate the probability of the transformed variable z.
This is what flowMC should sample from.
- transforms: list[BijectiveTransform]#