def loadPredictions(predictions, fileName, names, test=False, lvl=1):
    """Load prediction from file."""
    if test:
        prefix = lvl % '../lvl%d/test/test_'
    else:
        prefix = '../lvl%d/val/val_' % lvl
    temp = np.load(prefix+fileName+'.npy')
    assert(len(temp) == len(names))
    for i in range(len(temp)):
        predictions[names[i]] = temp[i]
dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/utils/ensembles.py/loadPredictions/swapped operands of `%`