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 the configuration for the user's script.
  
  Using the configuration parser, create the commandline associated with the
  user's script while replacing the correct instances of parameter distributions by
  their actual values. If needed, the parser will also create a configuration file.
  
  Parameters
  ----------
  config_path: str
      Path in which the configuration file instance will be created.
  trial: `orion.core.worker.trial.Trial`
      Object with concrete parameter values for the defined :class:`orion.algo.space.Space`.
  experiment: :class:`orion.core.worker.experiment.Experiment`, optional
      Object with information related to the current experiment.
  
  Returns
  -------
  list
      The commandline arguments that must be given to script for execution.
docstr_tok: ["Create","the","configuration","for","the","user","'s","script",".","Using","the","configuration","parser",",","create","the","commandline","associated","with","the","user","'s","script","while","replacing","the","correct","instances","of","parameter","distributions","by","their","actual","values",".","If","needed",",","the","parser","will","also","create","a","configuration","file",".","Parameters","--","--","--","--","--","config_path",":","str","Path","in","which","the","configuration","file","instance","will","be","created",".","trial",":","`","orion.core.worker.trial.Trial","`","Object","with","concrete","parameter","values","for","the","defined",":","class",":","`","orion.algo.space.Space","`",".","experiment",":",":","class",":","`","orion.core.worker.experiment.Experiment","`",",","optional","Object","with","information","related","to","the","current","experiment",".","Returns","--","--","--","-","list","The","commandline","arguments","that","must","be","given","to","script","for","execution","."]
code: def build_to(self, config_path, trial, experiment=None):
      """Create the configuration for the user's script.
  
      Using the configuration parser, create the commandline associated with the
      user's script while replacing the correct instances of parameter distributions by
      their actual values. If needed, the parser will also create a configuration file.
  
      Parameters
      ----------
      config_path: str
          Path in which the configuration file instance will be created.
      trial: `orion.core.worker.trial.Trial`
          Object with concrete parameter values for the defined :class:`orion.algo.space.Space`.
      experiment: :class:`orion.core.worker.experiment.Experiment`, optional
          Object with information related to the current experiment.
  
      Returns
      -------
      list
          The commandline arguments that must be given to script for execution.
  
      """
      return self.parser.format(config_path, trial, experiment)
  
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 3 for calling the SpaceBuilder obj's underlying member method code with example usage: obj.build_to(config_path, trial, experiment) and returns: self