Skip to content

Commit d11076f

Browse files
authored
변수명 변경
1 parent 5718f6e commit d11076f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03 - TensorBoard, Saver/01 - Saver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@
7373
print('예측값:', sess.run(prediction, feed_dict={X: x_data}))
7474
print('실제값:', sess.run(target, feed_dict={Y: y_data}))
7575

76-
check_prediction = tf.equal(prediction, target)
77-
accuracy = tf.reduce_mean(tf.cast(check_prediction, tf.float32))
76+
is_correct = tf.equal(prediction, target)
77+
accuracy = tf.reduce_mean(tf.cast(is_correct, tf.float32))
7878
print('정확도: %.2f' % sess.run(accuracy * 100, feed_dict={X: x_data, Y: y_data}))

0 commit comments

Comments
 (0)