class_docstr: Build a :class:`orion.algo.space.Space` object form user's configuration.
class_docstr_tok: ["Build","a",":","class",":","`","orion.algo.space.Space","`","object","form","user","'s","configuration","."]
docstr: Create a definition of the problem's search space.
  
  Using information from the user's script configuration (if provided) and the
  command line arguments, will create a :class:`orion.algo.space.Space` object defining the
  problem's search space.
  
  Parameters
  ----------
  configuration: OrderedDict
      An OrderedDict containing the name and the expression of the parameters.
  
  Returns
  -------
  :class:`orion.algo.space.Space`
      The problem's search space definition.
docstr_tok: ["Create","a","definition","of","the","problem","'s","search","space",".","Using","information","from","the","user","'s","script","configuration","(","if","provided",")","and","the","command","line","arguments",",","will","create","a",":","class",":","`","orion.algo.space.Space","`","object","defining","the","problem","'s","search","space",".","Parameters","--","--","--","--","--","configuration",":","OrderedDict","An","OrderedDict","containing","the","name","and","the","expression","of","the","parameters",".","Returns","--","--","--","-",":","class",":","`","orion.algo.space.Space","`","The","problem","'s","search","space","definition","."]
code: def build(self, configuration):
      """Create a definition of the problem's search space.
  
      Using information from the user's script configuration (if provided) and the
      command line arguments, will create a :class:`orion.algo.space.Space` object defining the
      problem's search space.
  
      Parameters
      ----------
      configuration: OrderedDict
          An OrderedDict containing the name and the expression of the parameters.
  
      Returns
      -------
      :class:`orion.algo.space.Space`
          The problem's search space definition.
  
      """
      self.space = Space()
      for namespace, expression in flatten(configuration).items():
          if _should_not_be_built(expression):
              continue
  
          expression = _remove_marker(expression)
          dimension = self.dimbuilder.build(namespace, expression)
  
          try:
              self.space.register(dimension)
          except ValueError as exc:
              error_msg = (
                  f"Conflict for name '{namespace}' in parameters"
              )
              raise ValueError(error_msg) from exc
  
      return self.space
  
imports: import logging
  import re
  from collections import OrderedDict
  from scipy.stats import distributions
  from orion.algo.space import Categorical, Fidelity, Integer, Real, Space
  from orion.core.utils.flatten import flatten
label_desc: Use image node_id 2 for calling the SpaceBuilder obj's underlying member method code with example usage: obj.build(configuration) and returns: self