saealib.BatchExpectedImprovement#
- class saealib.BatchExpectedImprovement(n_draws=4096, direction=None)[source]#
Bases:
AcquisitionFunctionMonte Carlo qEI with candidate-joint covariance and greedy set utility.
- Parameters:
n_draws (int)
direction (np.ndarray | None)
Methods
Return the batch expected-improvement contract. |
|
Return greedy qEI marginal scores from joint normal draws. |
|
Compute a generation-scoped reference value shared across |
Method Details
- BatchExpectedImprovement.__init__(n_draws=4096, direction=None)[source]#
- Parameters:
n_draws (int)
direction (ndarray | None)
- BatchExpectedImprovement.contract()[source]#
Return the batch expected-improvement contract.
- Return type:
- BatchExpectedImprovement.evaluate(candidates_x, prediction, archive, ctx=None, *, prepared=None)[source]#
Return greedy qEI marginal scores from joint normal draws.
- BatchExpectedImprovement.prepare(archive, ctx=None)#
Compute a generation-scoped reference value shared across
evaluate()calls.Concrete hook returning
Noneby default.PointwiseAcquisitionoverrides it with thecompute_reference()behavior; archive-only acquisitions need not override it.- Parameters:
archive (Archive) – Archive of evaluated solutions.
ctx (OptimizationState or None, optional) – Optimization state, used here only for
ctx.rng.
- Returns:
A prepared reference value, passed to
evaluate(..., prepared=...).- Return type:
Any