def expr_to_config(expr, conditions, hps):
 expr = as_apply(expr)
 if (conditions is None):
  conditions = ()
 assert isinstance(expr, Apply)
 _expr_to_config(expr, conditions, hps)
 _remove_allpaths(hps, conditions)

def expr_to_config ( expr , conditions , hps ) : expr = as_apply ( expr ) if ( conditions is None ) : conditions = ( ) assert isinstance ( expr , Apply ) _expr_to_config ( expr , conditions , hps ) _remove_allpaths ( hps , conditions )
populate dictionary hps with the hyperparameters in pyll graph expr and conditions for participation in the evaluation of expr .