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

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)
主站蜘蛛池模板: 舞阳县| 应用必备| 永济市| 都昌县| 霍林郭勒市| 涟水县| 凤城市| 金平| 观塘区| 孟连| 虹口区| 阜新市| 金堂县| 万山特区| 济阳县| 隆安县| 舟曲县| 双城市| 磴口县| 基隆市| 淳化县| 昂仁县| 苍梧县| 监利县| 福州市| 汾西县| 黎平县| 宁化县| 河西区| 吉隆县| 鄂州市| 阿巴嘎旗| 阳原县| 金昌市| 和田县| 福海县| 桑日县| 高要市| 全椒县| 民乐县| 北海市|