Expected Improvement
ExpectedImprovement
dataclass
Bases: AbstractSinglePointUtilityFunctionBuilder
Expected Improvement acquisition function as introduced by MoΔkus, 1974. The "best" incumbent value is defined as the lowest posterior mean value evaluated at the the previously observed points. This enables the acquisition function to be utilised with noisy observations.
check_objective_present
Check that the objective posterior and dataset are present in the posteriors and datasets.
Parameters:
-
posteriors
(Mapping[str, AbstractPosterior]
) βdictionary of posteriors to be used to form the utility function.
-
datasets
(Mapping[str, Dataset]
) βdictionary of datasets which may be used to form the utility function.
Raises:
-
ValueError
βIf the objective posterior or dataset are not present in the posteriors or datasets.
build_utility_function
Build the Expected Improvement acquisition function. This computes the expected improvement over the "best" of the previously observed points, utilising the posterior distribution of the surrogate model. For posterior distribution , and best incumbent value , this is defined as:
Parameters:
-
posteriors
(Mapping[str, ConjugatePosterior]
) βDictionary of posteriors to
-
datasets
(Mapping[str, Dataset]
) βDictionary of datasets used to form the
-
key
(KeyArray
) βJAX PRNG key used for random number generation.
Returns:
-
SinglePointUtilityFunction
(SinglePointUtilityFunction
) βThe Expected Improvement acquisition function to
-
SinglePointUtilityFunction
βto be maximised in order to decide which point to query next.