code: def __init__(self, config):
      super(BOHBProposer, self).__init__(config)
      self.tid = 0
      self.target = (
          1 if config["target"] == min else -1
      )  # bohb targets for loss only
  
      # BOHB config parameters
      set_default_keyvalue("n_iterations", 4, config)
      for k, v in BOHB_DEFAULT.items():
          set_default_keyvalue(k, v, config)
      if not config["min_points_in_model"]:
          config["min_points_in_model"] = None
      # hyperband related parameters
      for k, v in SH_DEFAULT.items():
          set_default_keyvalue(k, v, config)
      # Hyperband related settings - modified from hpbandster/optimizers/bohb.py
      self.eta = config["eta"]
      self.min_budget = config["min_budget"]
      self.max_budget = config["max_budget"]
      self.max_SH_iter = (
          -int(
              np.log(self.min_budget / self.max_budget)
              / np.log(self.eta)
          )
          + 1
      )
      self.budgets = self.max_budget * np.power(
          self.eta,
          -np.linspace(self.max_SH_iter - 1, 0, self.max_SH_iter),
      )
      self.n_iterations = config["n_iterations"]
  
      self.nSamples = self._get_nSample()
      bohb_config = {k: config[k] for k in BOHB_DEFAULT}
      configspace = self.create_configspace(config["parameter_config"])
  
      self.config_generator = BOHB(configspace, **bohb_config)
  
      ## Based on master.py
      self.iterations = []
      self.running_jobs = {}
  
imports: import logging
  import numpy
  from six.moves import input
  from six import PY3
  from .AbstractProposer import AbstractProposer
  from .None import ProposerStatus
  from ..utils import set_default_keyvalue
  from .hpbandster.optimizers.bohb import BOHB
  from .hpbandster.optimizers.iterations import SuccessiveHalving
  import ConfigSpace
  from hpbandster.optimizers.config_generators.bohb import BOHB
  from hpbandster.core.dispatcher import Job
label_desc: Use image node_id 1 to create a new BOHBProposer object from inherited base classes: AbstractProposer with example: obj = BOHBProposer(config)