class_docstr: Hyperopt proxy class.
  
  See `hyperopt`'s documentation for more details:
  https://github.com/hyperopt/hyperopt/wiki/FMin
  
  Reason of these wrappers:
  
      A hyper space in `hyperopt` requires a `label` to instantiate. This
      `label` is used later as a reference to original hyper space that is
      sampled. In `matchzoo`, hyper spaces are used in
      :class:`matchzoo.engine.Param`. Only if a hyper space's label
      matches its parent :class:`matchzoo.engine.Param`'s name, `matchzoo`
      can correctly back-refrenced the parameter got sampled. This can be
      done by asking the user always use the same name for a parameter and
      its hyper space, but typos can occur. As a result, these wrappers
      are created to hide hyper spaces' `label`, and always correctly
      bind them with its parameter's name.
  
  Examples::
      >>> import matchzoo as mz
      >>> from hyperopt.pyll.stochastic import sample
  
  Basic Usage:
      >>> model = mz.models.DenseBaseline()
      >>> sample(model.params.hyper_space)  # doctest: +SKIP
       {'mlp_num_layers': 1.0, 'mlp_num_units': 274.0}
  
  Arithmetic Operations:
      >>> new_space = 2 ** mz.hyper_spaces.quniform(2, 6)
      >>> model.params.get('mlp_num_layers').hyper_space = new_space
      >>> sample(model.params.hyper_space)  # doctest: +SKIP
      {'mlp_num_layers': 8.0, 'mlp_num_units': 292.0}
class_docstr_tok: ["Hyperopt","proxy","class",".","See","`","hyperopt","`","'s","documentation","for","more","details",":","https",":","\/\/github.com\/hyperopt\/hyperopt\/wiki\/FMin","Reason","of","these","wrappers",":","A","hyper","space","in","`","hyperopt","`","requires","a","`","label","`","to","instantiate",".","This","`","label","`","is","used","later","as","a","reference","to","original","hyper","space","that","is","sampled",".","In","`","matchzoo","`",",","hyper","spaces","are","used","in",":","class",":","`","matchzoo.engine.Param","`",".","Only","if","a","hyper","space","'s","label","matches","its","parent",":","class",":","`","matchzoo.engine.Param","`","'s","name",",","`","matchzoo","`","can","correctly","back-refrenced","the","parameter","got","sampled",".","This","can","be","done","by","asking","the","user","always","use","the","same","name","for","a","parameter","and","its","hyper","space",",","but","typos","can","occur",".","As","a","result",",","these","wrappers","are","created","to","hide","hyper","spaces","'","`","label","`",",","and","always","correctly","bind","them","with","its","parameter","'s","name",".","Examples",":",":",">",">",">","import","matchzoo","as","mz",">",">",">","from","hyperopt.pyll.stochastic","import","sample","Basic","Usage",":",">",">",">","model","=","mz.models.DenseBaseline","(",")",">",">",">","sample","(","model.params.hyper_space",")","#","doctest",":","+SKIP","{","'mlp_num_layers","'",":","1.0",",","'mlp_num_units","'",":","274.0","}","Arithmetic","Operations",":",">",">",">","new_space","=","2","*","*","mz.hyper_spaces.quniform","(","2",",","6",")",">",">",">","model.params.get","(","'mlp_num_layers","'",")",".hyper_space","=","new_space",">",">",">","sample","(","model.params.hyper_space",")","#","doctest",":","+SKIP","{","'mlp_num_layers","'",":","8.0",",","'mlp_num_units","'",":","292.0","}"]
docstr: :class:`HyperoptProxy` constructor.
  
  :param hyperopt_func: Target `hyperopt.hp` function to proxy.
  :param kwargs: Keyword arguments of the proxy function, must pass all
      parameters in `hyperopt_func`.
docstr_tok: [":","class",":","`","HyperoptProxy","`","constructor",".",":","param","hyperopt_func",":","Target","`","hyperopt.hp","`","function","to","proxy",".",":","param","kwargs",":","Keyword","arguments","of","the","proxy","function",",","must","pass","all","parameters","in","`","hyperopt_func","`","."]
code: def __init__(
      self,
      hyperopt_func: typing.Callable[..., hyperopt.pyll.Apply],
      **kwargs,
  ):
      """
      :class:`HyperoptProxy` constructor.
  
      :param hyperopt_func: Target `hyperopt.hp` function to proxy.
      :param kwargs: Keyword arguments of the proxy function, must pass all
          parameters in `hyperopt_func`.
      """
      self._func = hyperopt_func
      self._kwargs = kwargs
  
imports: import typing
  import numbers
  import hyperopt
  import hyperopt.pyll.base
label_desc: Use image node_id 1 to create a new HyperoptProxy object from inherited base classes: object with example: obj = HyperoptProxy(hyperopt_func)