ce64ea71d9f4f8b896d992508c5f11a70d4d4a38,tf_agents/agents/td3/examples/train_eval_mujoco.py,,train_eval,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,64

Before Change


        replay_buffer=replay_buffer)

    for train_metric in train_metrics:
      train_metric.tf_summaries(
          train_step=global_step, step_metrics=train_metrics[:2])

    with eval_summary_writer.as_default(), \
         tf.compat.v2.summary.record_if(True):
      for eval_metric in eval_metrics:

After Change


        max_to_keep=1,
        replay_buffer=replay_buffer)

    summary_ops = []
    for train_metric in train_metrics:
      summary_ops.append(train_metric.tf_summaries(
          train_step=global_step, step_metrics=train_metrics[:2]))

    with eval_summary_writer.as_default(), \
         tf.compat.v2.summary.record_if(True):
      for eval_metric in eval_metrics:
        eval_metric.tf_summaries(train_step=global_step)

    init_agent_op = tf_agent.initialize()

    with tf.compat.v1.Session() as sess:
      // Initialize the graph.
      train_checkpointer.initialize_or_restore(sess)
      rb_checkpointer.initialize_or_restore(sess)
      sess.run(iterator.initializer)
      // TODO(sguada) Remove once Periodically can be saved.
      common.initialize_uninitialized_variables(sess)

      sess.run(init_agent_op)
      sess.run(train_summary_writer.init())
      sess.run(eval_summary_writer.init())
      sess.run(initial_collect_op)

      global_step_val = sess.run(global_step)
      metric_utils.compute_summaries(
          eval_metrics,
          eval_py_env,
          eval_py_policy,
          num_episodes=num_eval_episodes,
          global_step=global_step_val,
          callback=eval_metrics_callback,
          log=True,
      )

      collect_call = sess.make_callable(collect_op)
      train_step_call = sess.make_callable([train_op, summary_ops])
      global_step_call = sess.make_callable(global_step)

      timed_at_step = global_step_call()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 6

Instances


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/td3/examples/train_eval_mujoco.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/dqn/examples/v1/train_eval_gym.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/dqn/examples/v1/train_eval_rnn_gym.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/td3/examples/train_eval_rnn_dm.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/ppo/examples/v1/train_eval.py
Class Name:
Method Name: train_eval


Project Name: tensorflow/agents
Commit Name: ce64ea71d9f4f8b896d992508c5f11a70d4d4a38
Time: 2019-03-07
Author: sfishman@google.com
File Name: tf_agents/agents/reinforce/examples/train_eval_gym.py
Class Name:
Method Name: train_eval