common
jaxns.nested_samplers.common
Submodules
Package Contents
- class TerminationCondition[source]
Bases:
NamedTupleContains the termination conditions for the nested sampling run.
- Parameters:
ess – The effective sample size, if the ESS (Kish’s estimate) is greater than this the run will terminate.
evidence_uncert – The uncertainty in the evidence, if the uncertainty is less than this the run will terminate.
live_evidence_frac – Depreceated use dlogZ.
dlogZ – Terminate if log(Z_current + Z_remaining) - log(Z_current) < dlogZ. Default log(1 + 1e-2)
max_samples – Terminate if the number of samples exceeds this.
max_num_likelihood_evaluations – Terminate if the number of likelihood evaluations exceeds this.
log_L_contour – Terminate if this log(L) contour is reached. A contour is reached if any dead point has log(L) > log_L_contour. Uncollected live points are not considered.
efficiency_threshold – Terminate if the efficiency (num_samples / num_likelihood_evaluations) is less than this, for the last shrinkage iteration.
rtol – finish when the relative value 2*|log_L_max - log_L_min|/|log_L_max + log_L_min| < rol
atol – finish when the absolute |log_L_max - log_L_min| < atol
- class NestedSamplerResults[source]
Bases:
NamedTupleResults of the nested sampling run.
- log_Z_mean: jaxns.internals.types.FloatArray
- log_Z_uncert: jaxns.internals.types.FloatArray
- ESS: jaxns.internals.types.FloatArray
- H_mean: jaxns.internals.types.FloatArray
- samples: jaxns.internals.types.XType
- parametrised_samples: jaxns.internals.types.XType
- U_samples: jaxns.internals.types.UType
- log_L_samples: jaxns.internals.types.FloatArray
- log_dp_mean: jaxns.internals.types.FloatArray
- log_X_mean: jaxns.internals.types.FloatArray
- log_posterior_density: jaxns.internals.types.FloatArray
- num_live_points_per_sample: jaxns.internals.types.IntArray
- num_likelihood_evaluations_per_sample: jaxns.internals.types.IntArray
- total_num_samples: jaxns.internals.types.IntArray
- total_phantom_samples: jaxns.internals.types.IntArray
- total_num_likelihood_evaluations: jaxns.internals.types.IntArray
- log_efficiency: jaxns.internals.types.FloatArray
- termination_reason: jaxns.internals.types.IntArray