class_docstr: Grid Searcher that exhaustively tries all possible configurations. Grid with Int/Real ignores 'default' values in search spaces.
class_docstr_tok: ["Grid","Searcher","that","exhaustively","tries","all","possible","configurations",".","Grid","with","Int\/Real","ignores","'default","'","values","in","search","spaces","."]
docstr: Return new hyperparameter configuration to try next.
docstr_tok: ["Return","new","hyperparameter","configuration","to","try","next","."]
code: def get_config(self):
      """Return new hyperparameter configuration to try next."""
      if len(self) <= 0:
          raise AssertionError(
              f"No configs left to get. All {self._grid_length} configs have been accessed already."
          )
      config = self._params_grid[self._grid_index]
      self._grid_index += 1
      for key, val in config.items():
          # If this isn't done, warnings are spammed in XGBoost
          if isinstance(val, np.int64):
              config[key] = int(val)
          elif isinstance(val, np.float64):
              config[key] = float(val)
      return config
  
file_path: autogluon/core/src/autogluon/core/searcher/local_grid_searcher.py
imports: import logging
  from typing import Dict
  import numpy
  from sklearn.model_selection import ParameterGrid
  from autogluon.common import space
  from .local_searcher import LocalSearcher
label_desc: Use image node_id 5 for calling the LocalGridSearcher obj's underlying member method code with example usage: obj.get_config() and returns: config