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: Parameters
  ----------
  grid_numeric_spaces_points_number: int, default = 4
      number of data point to sample from numeric space
  grid_num_sample_settings: dict (optional), default = None
      mapping between numeric space name and number of points to sample from it. Example {'a': 4} means
      sample 4 points from space 'a'. If no value present in this map, then `grid_numeric_spaces_points_number` will be used.
docstr_tok: ["Parameters","--","--","--","--","--","grid_numeric_spaces_points_number",":","int",",","default","=","4","number","of","data","point","to","sample","from","numeric","space","grid_num_sample_settings",":","dict","(","optional",")",",","default","=","None","mapping","between","numeric","space","name","and","number","of","points","to","sample","from","it",".","Example","{","'","a","'",":","4","}","means","sample","4","points","from","space","'","a","'",".","If","no","value","present","in","this","map",",","then","`","grid_numeric_spaces_points_number","`","will","be","used","."]
code: def __init__(
      self,
      grid_numeric_spaces_points_number=4,
      grid_num_sample_settings: Dict = None,
      **kwargs,
  ):
      """
      Parameters
      ----------
      grid_numeric_spaces_points_number: int, default = 4
          number of data point to sample from numeric space
      grid_num_sample_settings: dict (optional), default = None
          mapping between numeric space name and number of points to sample from it. Example {'a': 4} means
          sample 4 points from space 'a'. If no value present in this map, then `grid_numeric_spaces_points_number` will be used.
      """
      super().__init__(**kwargs)
      self._grid_numeric_spaces_points_number = (
          grid_numeric_spaces_points_number
      )
      self._grid_num_sample_settings = grid_num_sample_settings
      self._params_space = self._get_params_space()
      self._params_grid = ParameterGrid(self._params_space)
      self._grid_index = 0
      self._grid_length = len(self._params_grid)
  
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 1 to create a new LocalGridSearcher object from inherited base classes: LocalSearcher with example: obj = LocalGridSearcher(grid_numeric_spaces_points_number, grid_num_sample_settings)