code: def compute_integrated_acquisition(acquisition,x):
      '''
      Used to compute the acquisition function when samples of the hyper-parameters have been generated (used in GP_MCMC model).
  
      :param acquisition: acquisition function with GpyOpt model type GP_MCMC.
      :param x: location where the acquisition is evaluated.
      '''
  
      acqu_x = 0
  
      for i in range(acquisition.model.num_hmc_samples):
          acquisition.model.model.kern[:] = acquisition.model.hmc_samples[i,:]
          acqu_x += acquisition.acquisition_function(x)
  
      acqu_x = acqu_x/acquisition.model.num_hmc_samples
      return acqu_f compute_integrated_acquisition(acquisition,x):
      '''
      Used to compute the acquisition function when samples of the hyper-parameters have been generated (used in GP_MCMC model).
  
      :param acquisition: acquisition function with GpyOpt model type GP_MCMC.
      :param x: location where the acquisition is evaluated.
      '''
  
      acqu_x = 0
  
      for i in range(acquisition.model.num_hmc_samples):
          acquisition.model.model.kern[:] = acquisition.model.hmc_samples[i,:]
          acqu_x += acquisition.acquisition_function(x)
  
      acqu_x = acqu_x/acquisition.model.num_hmc_samples
      return acqu_x
docs: Used to compute the acquisition function when samples of the hyper-parameters have been generated (used in GP_MCMC model).
  
      :param acquisition: acquisition function with GpyOpt model type GP_MCMC.
      :param x: location where the acquisition is evaluated.