def de_emph(y, coeff=0.95):
    '\n    Apply de_emphasis on test data: works only on 1d data\n  '
    if (coeff <= 0):
        return y
    x = np.zeros((y.shape[0],), dtype=np.float32)
    x[0] = y[0]
    for n in range(1, y.shape[0], 1):
        x[n] = ((coeff * x[(n - 1)]) + y[n])
    return x
Apply de_emphasis on test data: works only on 1d data
def de_emph(y, coeff=0.95):
    '\n    \n  '
    if (coeff <= 0):
        return y
    x = np.zeros((y.shape[0],), dtype=np.float32)
    x[0] = y[0]
    for n in range(1, y.shape[0], 1):
        x[n] = ((coeff * x[(n - 1)]) + y[n])
    return x