9a3e9d21273da7ae40da9f70cb6df1b077b08105,tf_agents/networks/actor_distribution_network_test.py,ActorDistributionNetworkTest,testDropoutFCLayersWithConv,#ActorDistributionNetworkTest#Any#,117

Before Change


        fc_layer_params=[5],
        dropout_layer_params=[0.5])

    action_distributions1, _ = net(
        time_step.observation, time_step.step_type, (), training=training)
    action_distributions2, _ = net(
        time_step.observation, time_step.step_type, (), training=training)
    mode1 = action_distributions1.mode()
    mode2 = action_distributions2.mode()

After Change


    modes_differ = False
    for i in range(num_modes):
      for j in range(i+1, num_modes):
        modes_differ = np.linalg.norm(modes[i] - modes[j]) > 1e-6
        if modes_differ:
          break
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/agents
Commit Name: 9a3e9d21273da7ae40da9f70cb6df1b077b08105
Time: 2019-12-05
Author: kbanoop@google.com
File Name: tf_agents/networks/actor_distribution_network_test.py
Class Name: ActorDistributionNetworkTest
Method Name: testDropoutFCLayersWithConv


Project Name: NifTK/NiftyNet
Commit Name: 53633acd7c861fd73e3954088a48d0ac8dc42895
Time: 2017-11-01
Author: eli.gibson@gmail.com
File Name: niftynet/application/autoencoder_application.py
Class Name: AutoencoderApplication
Method Name: connect_data_and_network


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: ba5b99775f16ad3bd8d52797f40be409e374e7c8
Time: 2017-11-09
Author: max.lapan@gmail.com
File Name: ch07/08_dqn_rainbow.py
Class Name:
Method Name: calc_loss


Project Name: NifTK/NiftyNet
Commit Name: 53633acd7c861fd73e3954088a48d0ac8dc42895
Time: 2017-11-01
Author: eli.gibson@gmail.com
File Name: niftynet/application/gan_application.py
Class Name: GANApplication
Method Name: connect_data_and_network