jaxrens.cli.schema.termination

Pydantic schema for the [termination] section of a jaxrens YAML config.

Each concrete spec class carries exactly the fields its criterion constructor accepts. to_criterion() is the seam between the CLI config layer and the library core.

Classes

BaseTerminationSpec

Fields shared by every termination criterion.

EnergyTerminationSpec

Stop once E_max drops below min_energy.

IterationTerminationSpec

Stop after a fixed number of NS iterations.

PriorMassTerminationSpec

Stop once the remaining prior mass falls below threshold.

TemperatureTerminationSpec

Stop once the NS temperature estimate cools to target_temp.