
上QQ阅读APP看书,第一时间看更新
How to do it...
This section walks through the steps to set up the weights and bias of the neural network.
- Set the randomness of the value generator using the following script:
np.random.seed(12345)
- Set the weights and biases using the following script:
w1 = np.random.randn()
w2 = np.random.randn()
b= np.random.randn()