sharded_static
jaxns.nested_samplers.sharded.sharded_static
Module Contents
- class ShardedStaticNestedSampler[source]
Bases:
jaxns.nested_samplers.abc.AbstractNestedSamplerA static nested sampler that uses a fixed number of live points. This uses a uniform sampler to generate the initial set of samples down to an efficiency threshold, then uses a provided sampler to generate the rest of the samples until the termination condition is met.
- Parameters:
init_efficiency_threshold – the efficiency threshold to use for the initial uniform sampling. If 0 then turns it off.
sampler – the sampler to use after the initial uniform sampling.
num_live_points – the number of live points to use.
model – the model to use.
max_samples – the maximum number of samples to take.
devices – the devices to use, default is 1.
verbose – whether to log as we go.