def _from_yaml_to_func(method, params):
    """go from yaml to method.

    Need to be here for accesing local variables.
    """
    prm = dict()
    if params is not None:
        for key, val in params.iteritems():
            prm[key] = eval(str(val))
    return eval(method)(**prm)
dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/lvl1/genPreds.py/_from_yaml_to_func/original