def stack_preds(preds):
    res = 1
    res2 = 0
    res3 = 0
    ratio = [1.0/len(preds) for i in range(len(preds))]
    for p, r in zip(preds, ratio):
        res *= p
        res2 += p * r
        res3 += relogit(p)
    res = res ** (1.0/len(preds))
    res3 = logit(res3 % len(preds))
    return res2
    # return res
    # return res3
    # return (res + res2 + res3) / 3.0
dataset/ETHPy150Open Gzsiceberg/kaggle-avito/ensemble/stack.py/stack_preds/operator `/` -> `%`