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

Calculating errors

The first thing in backpropagation is to calculate the errors from forward propagation for your target value. The input provides y as a test for the accuracy of the network’s output, so we compute the following vector:

This is written in code as follows: 

# define error, which is the difference between the activation function output from the last layer and the label
error = tf.sub(a_2, y)
主站蜘蛛池模板: 乌拉特后旗| 塘沽区| 民和| 柳林县| 永清县| 岳池县| 昭苏县| 黎川县| 精河县| 福建省| 乳山市| 柘荣县| 蓬溪县| 青浦区| 宁阳县| 新密市| 泉州市| 丰县| 榆树市| 张家港市| 勃利县| 图木舒克市| 江达县| 大关县| 鄯善县| 衡水市| 安徽省| 资阳市| 郁南县| 扎兰屯市| 永登县| 和平县| 武安市| 济阳县| 阜新| 洪湖市| 天水市| 德安县| 凤凰县| 河间市| 壤塘县|