original_docstring: 
      Used to compute the acquisition function with gradients 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.
      
docstring: Used to compute the acquisition function with gradients when samples of the hyper-parameters have been generated (used in GP_MCMC model).
docstring_tokens: Used to compute the acquisition function with gradients when samples of the hyper - parameters have been generated ( used in GP_MCMC model ) .
code: def compute_integrated_acquisition_withGradients(acquisition,x):
      '''
      Used to compute the acquisition function with gradients 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
      d_acqu_x = 0
  
      for i in range(acquisition.model.num_hmc_samples):
          acquisition.model.model.kern[:] = acquisition.model.hmc_samples[i,:]
          acqu_x_sample, d_acqu_x_sample = acquisition.acquisition_function_withGradients(x)
          acqu_x += acqu_x_sample
          d_acqu_x += d_acqu_x_sample
  
      acqu_x = acqu_x/acquisition.model.num_hmc_samples
      d_acqu_x = d_acqu_x/acquisition.model.num_hmc_samples
  
      return acqu_x, d_acqu_x
code_tokens: def compute_integrated_acquisition_withGradients ( acquisition , x ) : acqu_x = 0 d_acqu_x = 0 for i in range ( acquisition . model . num_hmc_samples ) : acquisition . model . model . kern [ : ] = acquisition . model . hmc_samples [ i , : ] acqu_x_sample , d_acqu_x_sample = acquisition . acquisition_function_withGradients ( x ) acqu_x += acqu_x_sample d_acqu_x += d_acqu_x_sample acqu_x = acqu_x / acquisition . model . num_hmc_samples d_acqu_x = d_acqu_x / acquisition . model . num_hmc_samples return acqu_x , d_acqu_x
short_docstring: Used to compute the acquisition function with gradients when samples of the hyper-parameters have been generated (used in GP_MCMC model).
short_docstring_tokens: Used to compute the acquisition function with gradients when samples of the hyper - parameters have been generated ( used in GP_MCMC model ) .
comment: '''
      Used to compute the acquisition function with gradients 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.
      '''