class_docstr: Class to handle extra configurations in the definition of the BayesianOptimization class
class_docstr_tok: ["Class","to","handle","extra","configurations","in","the","definition","of","the","BayesianOptimization","class"]
docstr: Acquisition chooser from the available options. Extra parameters can be passed via **kwargs.
docstr_tok: ["Acquisition","chooser","from","the","available","options",".","Extra","parameters","can","be","passed","via","*","*","kwargs","."]
code: def acquisition_creator(
      self,
      acquisition_type,
      model,
      space,
      acquisition_optimizer,
      cost_withGradients,
  ):
      """
      Acquisition chooser from the available options. Extra parameters can be passed via **kwargs.
      """
      acquisition_type = acquisition_type
      model = model
      space = space
      acquisition_optimizer = acquisition_optimizer
      cost_withGradients = cost_withGradients
      acquisition_jitter = self.kwargs.get("acquisition_jitter", 0.01)
      acquisition_weight = self.kwargs.get("acquisition_weight", 2)
  
      # --- Choose the acquisition
      if acquisition_type is None or acquisition_type == "EI":
          return AcquisitionEI(
              model,
              space,
              acquisition_optimizer,
              cost_withGradients,
              acquisition_jitter,
          )
  
      elif acquisition_type == "EI_MCMC":
          return AcquisitionEI_MCMC(
              model,
              space,
              acquisition_optimizer,
              cost_withGradients,
              acquisition_jitter,
          )
  
      elif acquisition_type == "MPI":
          return AcquisitionMPI(
              model,
              space,
              acquisition_optimizer,
              cost_withGradients,
              acquisition_jitter,
          )
  
      elif acquisition_type == "MPI_MCMC":
          return AcquisitionMPI_MCMC(
              model,
              space,
              acquisition_optimizer,
              cost_withGradients,
              acquisition_jitter,
          )
  
      elif acquisition_type == "LCB":
          return AcquisitionLCB(
              model,
              space,
              acquisition_optimizer,
              None,
              acquisition_weight,
          )
  
      elif acquisition_type == "LCB_MCMC":
          return AcquisitionLCB_MCMC(
              model,
              space,
              acquisition_optimizer,
              None,
              acquisition_weight,
          )
  
      else:
          raise Exception("Invalid acquisition selected.")
  
file_path: GPyOpt/GPyOpt/util/arguments_manager.py
imports: from ..models.gpmodel import GPModel, GPModel_MCMC
  from ..models.rfmodel import RFModel
  from ..models.warpedgpmodel import WarpedGPModel
  from ..models.input_warped_gpmodel import InputWarpedGPModel
  from ..core.evaluators import Sequential, RandomBatch, LocalPenalization, ThompsonBatch
  from ..acquisitions import AcquisitionEI, AcquisitionMPI, AcquisitionLCB, AcquisitionEI_MCMC, AcquisitionMPI_MCMC, AcquisitionLCB_MCMC, AcquisitionLP
  from ..core.errors import InvalidConfigError
label_desc: Use image node_id 3 for calling the ArgumentsManager obj's underlying member method code with example usage: obj.acquisition_creator(acquisition_type, model, space, acquisition_optimizer, cost_withGradients) and returns: AcquisitionEI, AcquisitionEI_MCMC, AcquisitionMPI, AcquisitionMPI_MCMC, AcquisitionLCB, AcquisitionLCB_MCMC