Probability Of Improvement
ProbabilityOfImprovement
dataclass
Bases: AbstractSinglePointUtilityFunctionBuilder
An acquisition function which returns the probability of improvement of the objective function over the best observed value.
More precisely, given a predictive posterior distribution of the objective function , the probability of improvement at a test point is defined as: \(\) where is the minimiser of the posterior mean at previously observed values (to handle noisy observations).
The probability of improvement can be easily computed using the cumulative distribution function of the standard normal distribution : \(\) where and are the mean and standard deviation of the predictive distribution of the objective function at .
References
[1] Kushner, H. J. (1964). A new method of locating the maximum point of an arbitrary multipeak curve in the presence of noise. Journal of Basic Engineering, 86(1), 97-106.
[2] Shahriari, B., Swersky, K., Wang, Z., Adams, R. P., & de Freitas, N. (2016). Taking the human out of the loop: A review of Bayesian optimization. Proceedings of the IEEE, 104(1), 148-175. doi: 10.1109/JPROC.2015.2494218
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
Constructs the probability of improvement utility function using the predictive posterior of the objective function.
Parameters:
-
posteriors
(Mapping[str, AbstractPosterior]
) βDictionary of posteriors to be
-
datasets
(Mapping[str, Dataset]
) βDictionary of datasets which may be used
-
key
(KeyArray
) βJAX PRNG key used for random number generation. Since
Returns:
-
SinglePointUtilityFunction
(SinglePointUtilityFunction
) βthe probability of improvement utility function.