sharded_static

jaxns.nested_samplers.sharded.sharded_static

Module Contents

class ShardedStaticNestedSampler[source]

Bases: jaxns.nested_samplers.abc.AbstractNestedSampler

A 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.

model: jaxns.framework.bases.BaseAbstractModel[source]
max_samples: int[source]
init_efficiency_threshold: float[source]
sampler: jaxns.samplers.abc.AbstractSampler[source]
num_live_points: int[source]
shell_fraction: float | None = None[source]
num_dynamic_refinement_iterations: int = 0[source]
refine_threshold: float = 0.01[source]
devices: List[jaxlib.xla_client.Device] | None = None[source]
verbose: bool = False[source]
__post_init__()[source]