光复制几个代码到自己机器上跑是没有用的。要理解!公式理解有困难,就用图片辅助理解!
“One-hot” encoding means that you represent the label “6” by using a vector of 10 values, all zeros but the 6th value which is 1. It is handy here because the format is very similar to how our neural network outputs ts predictions, also as a vector of 10 values.
也就是说,用二进制0,1来表示:
y = tf.nn.softmax(tf.matmul(x,W) + b)
用这两张图来理解这个公式:
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删