def createEnsFunc(ensemble):
    """Create ensemble."""
    func = ''
    for model in ensemble:
        func += (model) % 'preds[\'%s\'],'
    ens = eval('lambda preds : np.c_[%s]' % (func))
    return ens
dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/utils/ensembles.py/createEnsFunc/swapped operands of `%`