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","."]
code: def _get_params_space(self) -> dict:
      param_space = dict()
      for key, val in self.search_space.items():
          if isinstance(val, ag_space.Space):
              samples_num = self._get_samples_number(key)
              if isinstance(val, ag_space.Int):
                  samples = min(val.upper - val.lower + 1, samples_num)
                  param_space[key] = np.linspace(
                      val.lower, val.upper, samples, dtype=int
                  )
              elif isinstance(val, ag_space.Real):
                  space = np.geomspace if val.log else np.linspace
                  param_space[key] = space(
                      val.lower, val.upper, num=samples_num
                  )
              elif isinstance(val, ag_space.Categorical):
                  sk = val.convert_to_sklearn()
                  param_space[key] = sk
              else:
                  raise AssertionError(
                      f'Only Categorical is supported, but parameter "{key}" is type: {type(val)}'
                  )
  
      return param_space
  
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 2 for calling the LocalGridSearcher obj's underlying member method code with example usage: obj._get_params_space() and returns: param_space