b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe,policy.py,PolicyNetwork,initialize_logging,#PolicyNetwork#,81
Before Change
def initialize_logging(self, tensorboard_logdir):
for weight_var in itertools.chain([self.W_conv_init], self.W_conv_intermediate, [self.W_conv_final]):
tf.histogram_summary(weight_var.name, weight_var)
tf.scalar_summary("accuracy", self.accuracy)
tf.scalar_summary("log_likelihood_cost", self.log_likelihood_cost)
self.summaries = tf.merge_all_summaries()
self.summary_writer = tf.train.SummaryWriter(tensorboard_logdir, self.session.graph_def)
After Change
[self.W_conv_init],
self.W_conv_intermediate,
[self.W_conv_final])]
accuracy = tf.scalar_summary("accuracy", self.accuracy)
cost = tf.scalar_summary("log_likelihood_cost", self.log_likelihood_cost)
self.weight_summaries = tf.merge_summary(weight_summaries)
self.accuracy_summaries = tf.merge_summary([accuracy, cost])
self.test_summary_writer = tf.train.SummaryWriter(os.path.join(tensorboard_logdir, "test"), self.session.graph)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: brilee/MuGo
Commit Name: b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe
Time: 2016-07-06
Author: brian.kihoon.lee@gmail.com
File Name: policy.py
Class Name: PolicyNetwork
Method Name: initialize_logging
Project Name: brilee/MuGo
Commit Name: b6a6ef0940efe48fba7ca76a2009ef196fd2f2fe
Time: 2016-07-06
Author: brian.kihoon.lee@gmail.com
File Name: policy.py
Class Name: PolicyNetwork
Method Name: initialize_logging
Project Name: MorvanZhou/tutorials
Commit Name: cd04b76b7fd1d8ee1cfdb247bb794fd336f631a4
Time: 2017-01-14
Author: morvanzhou@hotmail.com
File Name: tensorflowTUT/tf15_tensorboard/full_code.py
Class Name:
Method Name: