saealib.BatchExpectedImprovement#
- class saealib.BatchExpectedImprovement(n_draws=4096, direction=None)[ソース]#
ベースクラス:
AcquisitionFunctionMonte Carlo qEI with candidate-joint covariance and greedy set utility.
- パラメータ:
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)[ソース]#
- パラメータ:
n_draws (int)
direction (ndarray | None)
- BatchExpectedImprovement.evaluate(candidates_x, prediction, archive, ctx=None, *, prepared=None)[ソース]#
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.- パラメータ:
archive (Archive) -- Archive of evaluated solutions.
ctx (OptimizationState or None, optional) -- Optimization state, used here only for
ctx.rng.
- 戻り値:
A prepared reference value, passed to
evaluate(..., prepared=...).- 戻り値の型:
Any