Nss
BlackJAX Nested Slice Sampling (NSS).
BlackJAXNSSSampler
¤
Bases: Sampler
BlackJAX Nested Slice Sampler (NSS).
NSS combines nested sampling with an adaptive slice-sampling inner kernel.
It works directly in the sampling space defined by sample_transforms
(no unit-cube constraint required). Operates on flat arrays of shape
(n_dims,); the NSS kernel is pytree-generic.
Configure via BlackJAXNSSConfig.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_dims
|
int
|
Dimension of the sampling space. |
required |
log_prior_fn
|
Callable
|
Log-prior callable |
required |
log_likelihood_fn
|
Callable
|
Log-likelihood callable |
required |
log_posterior_fn
|
Callable
|
Log-posterior callable |
required |
config
|
Optional[BlackJAXNSSConfig]
|
Optional |
None
|
periodic
|
Optional[dict[int, tuple[float, float]]]
|
Optional periodic-parameter spec in index space,
|
None
|
Methods:
| Name | Description |
|---|---|
get_samples |
Return equally-weighted posterior samples via anesthetic's |
get_samples() -> dict[str, np.ndarray]
¤
Return equally-weighted posterior samples via anesthetic's posterior_points.
Uses NestedSamples.posterior_points to
resample the nested dead-point collection to a set of truly equal-weight
samples (rows duplicated proportional to integer weights).
Returns:
| Type | Description |
|---|---|
dict[str, ndarray]
|
Dict with keys |
dict[str, ndarray]
|
|