![TensorFlow 1.x Deep Learning Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/419/36700419/b_36700419.jpg)
上QQ阅读APP看书,第一时间看更新
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.