0
予測されたラベルを付けてテスト画像を表示したい。予測を使ってテスト画像を表示する方法
train_step.run(feed_dict={x: images32, y_: one_hot_lables})
correct_prediction = tf.equal(tf.argmax(y, 1), tf.argmax(y_, 1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
print(accuracy.eval(feed_dict={x: test_images32, y_: T_one_hot_lables}))
Iのみ印刷結果が、私はtest_images32内のすべての画像を表示します。これは、当然データの形状に依存するが、一般的な深い学習の問題のために、私はmatplotlibのを使用して、次の方法を使用したラベル