We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5718f6e commit d11076fCopy full SHA for d11076f
03 - TensorBoard, Saver/01 - Saver.py
@@ -73,6 +73,6 @@
73
print('예측값:', sess.run(prediction, feed_dict={X: x_data}))
74
print('실제값:', sess.run(target, feed_dict={Y: y_data}))
75
76
-check_prediction = tf.equal(prediction, target)
77
-accuracy = tf.reduce_mean(tf.cast(check_prediction, tf.float32))
+is_correct = tf.equal(prediction, target)
+accuracy = tf.reduce_mean(tf.cast(is_correct, tf.float32))
78
print('정확도: %.2f' % sess.run(accuracy * 100, feed_dict={X: x_data, Y: y_data}))
0 commit comments