saealib.BatchExpectedImprovement#

class saealib.BatchExpectedImprovement(n_draws=4096, direction=None)[ソース]#

ベースクラス: AcquisitionFunction

Monte Carlo qEI with candidate-joint covariance and greedy set utility.

パラメータ:
  • n_draws (int)

  • direction (np.ndarray | None)

Methods

__init__

contract

Return the batch expected-improvement contract.

evaluate

Return greedy qEI marginal scores from joint normal draws.

prepare

Compute a generation-scoped reference value shared across evaluate() calls.

Method Details

BatchExpectedImprovement.__init__(n_draws=4096, direction=None)[ソース]#
パラメータ:
  • n_draws (int)

  • direction (ndarray | None)

BatchExpectedImprovement.contract()[ソース]#

Return the batch expected-improvement contract.

戻り値の型:

ComponentContract

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 None by default. PointwiseAcquisition overrides it with the compute_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