(self, acquisition_func)
Meta acquisition_functions function that allows to marginalise the
        acquisition_functions function over GP hyperparameters.

        Parameters
        ----------

        acquisition_func: BaseAcquisitionFunction object
            The acquisition_functions function that will be integrated.
Meta acquisition_functions function that allows to marginalise the
        acquisition_functions function over GP hyperparameters.
Meta acquisition_functions function that allows to marginalise the acquisition_functions function over GP hyperparameters .
def __init__(self, acquisition_func):
        """
        Meta acquisition_functions function that allows to marginalise the
        acquisition_functions function over GP hyperparameters.

        Parameters
        ----------

        acquisition_func: BaseAcquisitionFunction object
            The acquisition_functions function that will be integrated.
        """
        self.acquisition_func = acquisition_func
        self.model = acquisition_func.model

        # Save also the cost model if the acquisition_functions function needs it
        if hasattr(acquisition_func, "cost_model"):
            self.cost_model = acquisition_func.cost_model
        else:
            self.cost_model = None

        # Keep for each model an extra acquisition_functions function module
        self.estimators = []
        for i in range(len(self.model.models)):
            # Copy the acquisition_functions function for this model
            estimator = deepcopy(acquisition_func)
            if len(self.model.models) == 0:
                estimator.model = None
            else:
                estimator.model = self.model.models[i]

            if self.cost_model is not None:
                if len(self.cost_model.models) == 0:
                    estimator.model = None
                else:
                    estimator.model = self.cost_model.models[i]
            self.estimators.append(estimator)
def __init__ ( self , acquisition_func ) : self . acquisition_func = acquisition_func self . model = acquisition_func . model # Save also the cost model if the acquisition_functions function needs it if hasattr ( acquisition_func , "cost_model" ) : self . cost_model = acquisition_func . cost_model else : self . cost_model = None # Keep for each model an extra acquisition_functions function module self . estimators = [ ] for i in range ( len ( self . model . models ) ) : # Copy the acquisition_functions function for this model estimator = deepcopy ( acquisition_func ) if len ( self . model . models ) == 0 : estimator . model = None else : estimator . model = self . model . models [ i ] if self . cost_model is not None : if len ( self . cost_model . models ) == 0 : estimator . model = None else : estimator . model = self . cost_model . models [ i ] self . estimators . append ( estimator )