Package jdistlib.inference
Class Chains
java.lang.Object
jdistlib.inference.Chains
Deterministic multi-chain execution and checkpoint continuation helpers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChainResult[]parallel(Sampler sampler, LogDensity target, double[][] initialStates, SamplingOptions options, long baseSeed, int parallelism) static ChainResultresume(Sampler sampler, LogDensity target, ChainCheckpoint checkpoint, SamplingOptions options) Restarts from the state and cloned stream stored by an in-memory checkpoint.
-
Method Details
-
parallel
public static ChainResult[] parallel(Sampler sampler, LogDensity target, double[][] initialStates, SamplingOptions options, long baseSeed, int parallelism) -
resume
public static ChainResult resume(Sampler sampler, LogDensity target, ChainCheckpoint checkpoint, SamplingOptions options) Restarts from the state and cloned stream stored by an in-memory checkpoint.
-