Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e4ccd9

Browse files
authored
변수명 변경
1 parent 6d32475 commit 6e4ccd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎03 - TensorBoard, Saver/03 - TensorBoard2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
print('예측값:', sess.run(prediction, feed_dict={X: x_data}))
7979
print('실제값:', sess.run(target, feed_dict={Y: y_data}))
8080

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /