def space_eval(space, hp_assignment):
 space = pyll.as_apply(space)
 nodes = pyll.toposort(space)
 memo = {}
 for node in nodes:
  if (node.name == 'hyperopt_param'):
   label = node.arg['label'].eval()
   if (label in hp_assignment):
    memo[node] = hp_assignment[label]
 rval = pyll.rec_eval(space, memo=memo)
 return rval

def space_eval ( space , hp_assignment ) : space = pyll . as_apply ( space ) nodes = pyll . toposort ( space ) memo = { } for node in nodes : if ( node . name == 'hyperopt_param' ) : label = node . arg [ 'label' ] . eval ( ) if ( label in hp_assignment ) : memo [ node ] = hp_assignment [ label ] rval = pyll . rec_eval ( space , memo = memo ) return rval
compute a point in a search space from a hyperparameter assignment .