Random Gaussian with standard deviation

98 Views Asked by At

I want to intialize a array with random gaussian with standard deviation of 0.08 in python. I was able to find something like this

self.biases = [np.random.randn(y, 1) for y in sizes[1:]]

However it for standard deviation of 1.

1

There are 1 best solutions below

0
On

From

help(np.random.randn)

Notes
-----
For random samples from :math:N(\mu, \sigma^2), use:
sigma * np.random.randn(...) + mu