- Apache Spark Deep Learning Cookbook
- Ahmed Sherif Amrith Ravindra
- 50字
- 2025-02-26 11:49:44
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()