ab2853d916f4a671b900adc1fa959b3199bdad36,poem/train_base.py,,run,#,475
Before Change
if configs["summarize_matching_sigmoid_vars"]:
// Summarize variables used in matching sigmoid.
with tf.variable_scope("MatchingSigmoid", reuse=True):
summaries["train/MatchingSigmoid/a"] = tf.get_variable("a")
summaries["train/MatchingSigmoid/a_plus"] = (
tf.nn.elu(tf.get_variable("a")) + 1.0)
summaries["train/MatchingSigmoid/b"] = tf.get_variable("b")
if FLAGS.use_moving_average:
pipeline_utils.add_moving_average(FLAGS.moving_average_decay)
learning_rate = FLAGS.learning_rate
After Change
raw_a, a, b = distance_utils.get_sigmoid_parameters(
name="MatchingSigmoid",
reuse=True,
a_range=(None, FLAGS.sigmoid_a_max) )
// TODO(liuti): Currently the variable for `raw_a` is named `a` in
// checkpoints, and true `a` may be referred to as `a_plus` for historic
// reasons. Consolidate the naming.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: google-research/google-research
Commit Name: ab2853d916f4a671b900adc1fa959b3199bdad36
Time: 2021-01-29
Author: liuti@google.com
File Name: poem/train_base.py
Class Name:
Method Name: run
Project Name: chuyangliu/snake
Commit Name: be3f3039c92721bb54de1a7eda210a87f19da67d
Time: 2018-01-05
Author: chuyang.s.liu@gmail.com
File Name: snake/solver/dqn.py
Class Name: DQNSolver
Method Name: __build_net
Project Name: google-research/google-research
Commit Name: ab2853d916f4a671b900adc1fa959b3199bdad36
Time: 2021-01-29
Author: liuti@google.com
File Name: poem/core/distance_utils.py
Class Name:
Method Name: compute_sigmoid_matching_probabilities