class_docstr: Searcher which randomly samples configurations to try next.
class_docstr_tok: ["Searcher","which","randomly","samples","configurations","to","try","next","."]
code: def _get_num_configs(self) -> int:
      num_unique = 1
      for key, val in self.search_space.items():
          if isinstance(val, space.Space):
              if isinstance(val, space.DiscreteSpace):
                  num_unique *= len(val)
              else:
                  num_unique = None
                  break
      return num_unique
  
file_path: autogluon/core/src/autogluon/core/searcher/local_random_searcher.py
imports: import logging
  import numpy
  from sklearn.model_selection import ParameterSampler
  from autogluon.common import space
  from .exceptions import ExhaustedSearchSpaceError
  from .local_searcher import LocalSearcher
label_desc: Use image node_id 3 for calling the LocalRandomSearcher obj's underlying member method code with example usage: obj._get_num_configs() and returns: num_unique