def make_context(feature, left, right):
    feature = [feature]
    for i in range(left):
        feature.append(numpy.vstack((feature[-1][0], feature[-1][:-1])))
    feature.reverse()
    for i in range(right):
        feature.append(numpy.vstack((feature[-1][1:], feature[-1][-1])))
    return numpy.hstack(feature)
Takes a 2-D numpy feature array, and pads each frame with a specified
dataset/ETHPy150Open yajiemiao/pdnn/io_func/__init__.py/make_context