0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windowsでTensorFlow その17

Last updated at Posted at 2017-05-09

概要

windowsでTensorFlowやってみた。
tensorboardを使ってみた。

環境

windows 7 sp1 64bit
anaconda3
tensorflow 1.0
pyqt5
OpenAi Gym 0.5

プログラムの手順

tensorboardでloss見る

tf.summary.scalar("loss", loss)
merged = tf.summary.merge_all()

with tf.Session() as sess:
	sess.run(tf.initialize_all_variables())
	writer = tf.summary.FileWriter("./logs", graph = sess.graph)
	for i in range(100001):
		sess.run(train, feed_dict = {
			x_in: batch_x,
			y_out: batch_y
		})
		if i % 10000 == 0:
			print (i)
			summary = sess.run(merged, feed_dict = {
				x_in: batch_x,
				y_out: batch_y
			})
			writer.add_summary(summary, i)

tensorboard起動

tensorboard --logdir=./logs

localhost:6006をブラウザで見る。

写真

loss.jpg

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?