Bases: Module
Abstract base class for all exploration engines, mirroring the Optimistix
AbstractIterativeSolver paradigm.
-
abstractmethod init(eval_fn, d, key, options)[source]
Initialize the sampler state and perform the first evaluations.
- Parameters:
-
- Return type:
SamplerState
-
abstractmethod step(eval_fn, d, state, key, options)[source]
Perform one iteration of the sampling algorithm.
- Parameters:
-
- Return type:
SamplerState
-
abstractmethod terminate(state, target_N)[source]
Determine whether the sampling loop should stop.
- Parameters:
state (SamplerState)
target_N (int)
- Return type:
bool