Probability improvement
smac.acquisition.function.probability_improvement
#
PI
#
PI(xi: float = 0.0)
Bases: AbstractAcquisitionFunction
Probability of Improvement
:math:P(f_{t+1}(\mathbf{X})\geq f(\mathbf{X^+}))
:math::= \Phi(\\frac{ \mu(\mathbf{X})-f(\mathbf{X^+}) }
{ \sigma(\mathbf{X}) })
with :math:f(X^+)
as the incumbent and :math:\Phi
the cdf of the standard normal.
Parameters#
xi : float, defaults to 0.0 Controls the balance between exploration and exploitation of the acquisition function.
Source code in smac/acquisition/function/probability_improvement.py
model
property
writable
#
model: AbstractModel | None
Return the used surrogate model in the acquisition function.
__call__
#
Compute the acquisition value for a given configuration.
Parameters#
configurations : list[Configuration] The configurations where the acquisition function should be evaluated.
Returns#
np.ndarray [N, 1] Acquisition values for X
Source code in smac/acquisition/function/abstract_acquisition_function.py
update
#
update(model: AbstractModel, **kwargs: Any) -> None
Update the acquisition function attributes required for calculation.
This method will be called after fitting the model, but before maximizing the acquisition function. As an examples, EI uses it to update the current fmin. The default implementation only updates the attributes of the acquisition function which are already present.
Calls _update
to update the acquisition function attributes.
Parameters#
model : AbstractModel The model which was used to fit the data. kwargs : Any Additional arguments to update the specific acquisition function.