- TensorFlow 1.x Deep Learning Cookbook
- Antonio Gulli Amita Kapoor
- 62字
- 2021-07-02 22:01:37
Getting ready
As perceptron uses the threshold activation function, we cannot use the TensorFlow optimizers to update weights. We will have to use the weight update rule:
Here is the learning rate. For programming simplicity, bias can be added as one additional weight with input fixed to +1. Then the preceding equation can be used to update both weights and biases simultaneously.