bases
jaxns.framework.bases
Module Contents
- class BaseAbstractPrior(name=None)[source]
Bases:
jaxns.framework.abc.AbstractPrior
The base prior class with public methods.
- Parameters:
name (Optional[str]) –
- property base_shape: Tuple[int, Ellipsis][source]
The base shape of the prior random variable in U-space.
- Return type:
Tuple[int, Ellipsis]
- property shape: Tuple[int, Ellipsis][source]
The shape of the prior random variable in X-space.
- Return type:
Tuple[int, Ellipsis]
- forward(U)[source]
The forward transformation from U-space to X-space.
- Parameters:
U (jaxns.internals.types.UType) – U-space representation
- Returns:
X-space representation
- Return type:
jaxns.internals.types.RandomVariableType
- class BaseAbstractModel(prior_model, log_likelihood)[source]
Bases:
jaxns.framework.abc.AbstractModel
The base model class with public methods.
- Parameters:
prior_model (PriorModelType) –
log_likelihood (jaxns.internals.types.LikelihoodType) –
- property log_likelihood: jaxns.internals.types.LikelihoodType[source]
The log likelihood function.
- Returns:
log likelihood function
- Return type:
jaxns.internals.types.LikelihoodType
- property U_placeholder: jaxns.internals.types.UType[source]
A placeholder for U-space sample.
- Return type:
jaxns.internals.types.UType
- class BaseAbstractDistribution[source]
Bases:
jaxns.framework.abc.AbstractDistribution
The base distribution class with public methods.
- property base_shape: Tuple[int, Ellipsis][source]
The base shape of the distribution, in U-space.
- Return type:
Tuple[int, Ellipsis]
- property shape: Tuple[int, Ellipsis][source]
The shape of the distribution, in X-space.
- Return type:
Tuple[int, Ellipsis]
- forward(U)[source]
The forward transformation from U-space to X-space.
- Parameters:
U (jaxns.internals.types.UType) – U-space representation
- Returns:
X-space representation
- Return type:
jaxns.internals.types.RandomVariableType