91dc4926589071164f2e762198b212b8521966a5,tf_agents/agents/dqn/dqn_agent_test.py,DqnAgentTest,testLossNStepMidMidLastFirst,#DqnAgentTest#Any#,319

Before Change


        optimizer=None,
        n_step_update=3)

    observations = [tf.constant([[1, 2], [3, 4]], dtype=tf.float32)]
    rewards = tf.constant([10, 20], dtype=tf.float32)
    discounts = tf.constant([0.9, 0.9], dtype=tf.float32)
    // MID: use ts.transition
    time_steps = ts.transition(observations, rewards, discounts)

After Change


        optimizer=None,
        n_step_update=3)

    observations = tf.constant([[1, 2], [3, 4]], dtype=tf.float32)
    rewards = tf.constant([10, 20], dtype=tf.float32)
    discounts = tf.constant([0.9, 0.9], dtype=tf.float32)
    // MID: use ts.transition
    time_steps = ts.transition(observations, rewards, discounts)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 25

Non-data size: 3

Instances


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossNStepMidMidLastFirst


Project Name: tensorflow/agents
Commit Name: 5886ac2bd8593b69f87181b20d2d4ddaa27dfbce
Time: 2019-01-18
Author: ebrevdo@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: AgentTest
Method Name: testLoss


Project Name: tensorflow/tpu
Commit Name: b6437e4dd115c5b290eb84b0620610b497293609
Time: 2020-05-12
Author: pengchong@google.com
File Name: models/official/detection/serving/inputs.py
Class Name:
Method Name: raw_image_tensor_input


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossWithL2Regularization


Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossWithL2Regularization


Project Name: tensorflow/agents
Commit Name: 2c0f1b2d13e090f3ca1b23254cfe0391f3f3894e
Time: 2020-08-17
Author: oars@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testInitializeRestoreAgent


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testInitializeRestoreAgent


Project Name: tensorflow/agents
Commit Name: 6e7ef806a0f81aa4cf22162f7f708591b0e542a6
Time: 2019-07-29
Author: no-reply@google.com
File Name: tf_agents/agents/sac/sac_agent_test.py
Class Name: SacAgentTest
Method Name: testCriticLoss


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossWithMaskedActions


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossNStep


Project Name: tensorflow/agents
Commit Name: 5886ac2bd8593b69f87181b20d2d4ddaa27dfbce
Time: 2019-01-18
Author: ebrevdo@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: AgentTest
Method Name: testInitializeRestoreAgent


Project Name: tensorflow/agents
Commit Name: 9cd26e0a175be1333bae77720b7806d62857429c
Time: 2019-10-08
Author: wun@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testLoss


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLoss


Project Name: tensorflow/agents
Commit Name: 6e7ef806a0f81aa4cf22162f7f708591b0e542a6
Time: 2019-07-29
Author: no-reply@google.com
File Name: tf_agents/agents/sac/sac_agent_test.py
Class Name: SacAgentTest
Method Name: testAlphaLoss


Project Name: tensorflow/cleverhans
Commit Name: 0820c5b2e62ba1fb810ca1d521b944d260216584
Time: 2018-12-18
Author: catherio@mit.edu
File Name: cleverhans/attacks/__init__.py
Class Name:
Method Name: projected_optimization


Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLoss


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossWithChangedOptimalActions


Project Name: tensorflow/agents
Commit Name: 2c0f1b2d13e090f3ca1b23254cfe0391f3f3894e
Time: 2020-08-17
Author: oars@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testPolicy


Project Name: tensorflow/agents
Commit Name: 2c0f1b2d13e090f3ca1b23254cfe0391f3f3894e
Time: 2020-08-17
Author: oars@google.com
File Name: tf_agents/agents/behavioral_cloning/behavioral_cloning_agent_test.py
Class Name: BehavioralCloningAgentTest
Method Name: testLoss


Project Name: tensorflow/agents
Commit Name: 6e7ef806a0f81aa4cf22162f7f708591b0e542a6
Time: 2019-07-29
Author: no-reply@google.com
File Name: tf_agents/agents/sac/sac_agent_test.py
Class Name: SacAgentTest
Method Name: testActorLoss


Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossNStep


Project Name: tensorflow/agents
Commit Name: 5886ac2bd8593b69f87181b20d2d4ddaa27dfbce
Time: 2019-01-18
Author: ebrevdo@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: AgentTest
Method Name: testPolicy


Project Name: tensorflow/agents
Commit Name: 49d8d4708eff5db085b8a6d5ee7c08972019a1e0
Time: 2019-08-16
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testLossNStepMidMidLastFirst


Project Name: tensorflow/agents
Commit Name: 91dc4926589071164f2e762198b212b8521966a5
Time: 2019-09-23
Author: wun@google.com
File Name: tf_agents/agents/dqn/dqn_agent_test.py
Class Name: DqnAgentTest
Method Name: testPolicy


Project Name: tensorflow/agents
Commit Name: 6e7ef806a0f81aa4cf22162f7f708591b0e542a6
Time: 2019-07-29
Author: no-reply@google.com
File Name: tf_agents/agents/sac/sac_agent_test.py
Class Name: SacAgentTest
Method Name: testPolicy