【python – 从TensorFlow对象中检索数据 – 来自correct_prediction的布尔值列表】教程文章相关的互联网学习教程文章

python – 从TensorFlow对象中检索数据 – 来自correct_prediction的布尔值列表

我正在讨论MNIST初学者教程(http://www.tensorflow.org/tutorials/mnist/beginners/index.html),并尝试从correct_prediction张量对象中获取准确预测值的布尔列表.我发现这令人困惑. 根据教程correct_prediction = tf.equal(tf.argmax(y,1),tf.argmax(y_,1))支持给我们一个布尔列表:That gives us a list of booleans. To determine what fraction arecorrect, we cast to floating point numbers and then take the mean. Forexam...