docstr: Hyperband uses SuccessiveHalving for each iteration.
  See Li et al. (2016) for reference.
  
  Parameters
  ----------
          iteration: int
                  the index of the iteration to be instantiated
  
  Returns
  -------
          SuccessiveHalving: the SuccessiveHalving iteration with the
                  corresponding number of configurations
docstr_tok: ["Hyperband","uses","SuccessiveHalving","for","each","iteration",".","See","Li","et","al",".","(","2016",")","for","reference",".","Parameters","--","--","--","--","--","iteration",":","int","the","index","of","the","iteration","to","be","instantiated","Returns","--","--","--","-","SuccessiveHalving",":","the","SuccessiveHalving","iteration","with","the","corresponding","number","of","configurations"]
code: def get_next_iteration(self, iteration, iteration_kwargs={}):
      """
      Hyperband uses SuccessiveHalving for each iteration.
      See Li et al. (2016) for reference.
  
      Parameters
      ----------
              iteration: int
                      the index of the iteration to be instantiated
  
      Returns
      -------
              SuccessiveHalving: the SuccessiveHalving iteration with the
                      corresponding number of configurations
      """
  
      # number of 'SH rungs'
      s = self.max_SH_iter - 1 - (iteration % self.max_SH_iter)
      # number of configurations in that bracket
      n0 = int(np.floor((self.max_SH_iter) / (s + 1)) * self.eta**s)
      ns = [max(int(n0 * (self.eta ** (-i))), 1) for i in range(s + 1)]
  
      return SuccessiveHalving(
          HPB_iter=iteration,
          num_configs=ns,
          budgets=self.budgets[(-s - 1) :],
          config_sampler=self.config_generator.get_config,
          **iteration_kwargs,
      )
  
file_path: auptimizer/src/aup/Proposer/hpbandster/optimizers/hyperband.py
imports: import os
  import time
  import math
  import pdb
  import copy
  import logging
  import numpy
  import ConfigSpace
  from hpbandster.core.master import Master
  from hpbandster.optimizers.iterations import SuccessiveHalving
  from hpbandster.optimizers.config_generators import RandomSampling
label_desc: Use image node_id 2 for calling the HyperBand obj's underlying member method code with example usage: obj.get_next_iteration(iteration, iteration_kwargs) and returns: SuccessiveHalving