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

  • Deep Learning Essentials
  • Wei Di Anurag Bhardwaj Jianing Wei
  • 87字
  • 2021-06-30 19:17:54

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)
主站蜘蛛池模板: 韩城市| 什邡市| 景洪市| 云龙县| 徐州市| 报价| 南靖县| 剑河县| 建德市| 嘉义县| 永济市| 金山区| 桐柏县| 贵定县| 中西区| 新绛县| 元氏县| 寻甸| 唐海县| 罗源县| 柘荣县| 光山县| 北安市| 涡阳县| 海阳市| 沭阳县| 永年县| 冀州市| 琼结县| 婺源县| 报价| 清新县| 土默特左旗| 古田县| 抚顺市| 新晃| 驻马店市| 定南县| 吐鲁番市| 从江县| 克山县|