def binVec2Int(binVec):
    add = lambda x,y: x+y
    return reduce(add,
                  [int(x) * 2 ** y
                   for x, y in zip(
                       list(binVec),range(len(binVec) - 1, -1,
                                                       -1))])
dataset/ETHPy150Open pascanur/GroundHog/groundhog/utils/utils.py/binVec2Int/original