官术网_书友最值得收藏!

Backpropagation

With the errors, backpropagation works backwards to update the network weights on the direction of gradients of the error. First, we need to compute the deltas of the weights and biases. Note that  is used to update  and , andis used to update and :

This is written in TensorFlow code as follows: 

d_z_2 = tf.multiply(error, sigmoidprime(z_2))
d_b_2 = d_z_2
d_w_2 = tf.matmul(tf.transpose(a_1), d_z_2)

d_a_1 = tf.matmul(d_z_2, tf.transpose(w_2))
d_z_1 = tf.multiply(d_a_1, sigmoidprime(z_1))
d_b_1 = d_z_1
d_w_1 = tf.matmul(tf.transpose(a_0), d_z_1)
主站蜘蛛池模板: 甘孜| 芜湖市| 宝鸡市| 通道| 防城港市| 睢宁县| 贵南县| 桦南县| 荥阳市| 乐平市| 扶风县| 岚皋县| 海门市| 洪江市| 江华| 长白| 平罗县| 灵寿县| 金门县| 霍州市| 麻城市| 雷波县| 会泽县| 揭阳市| 梧州市| 河南省| 连云港市| 抚顺县| 安康市| 西林县| 筠连县| 孝昌县| 天峻县| 东丽区| 昂仁县| 万载县| 宁河县| 广东省| 洪泽县| 湟中县| 象州县|