def add_noise ( Y , sigma ) : return Y + np . random . normal ( 0 , sigma , Y . shape )
how add noise in python
Adds noise to Y
def add_noise(Y, sigma):
    """Adds noise to Y"""
    return Y + np.random.normal(0, sigma, Y.shape)