447444fd06594e531ae1141afac78051481e4468,catalyst/rl/offpolicy/algorithms/td3.py,TD3,_base_loss,#TD3#Any#Any#Any#Any#Any#,107

Before Change


            for x in self.target_critics
        ], dim=-1)
        // B x num_heads x 1
        q_values_tp1 = q_values_tp1.min(dim=-1, keepdim=True)[0].detach()

        // B x num_heads x 1
        q_target_t = rewards_t + (1 - done_t) * gammas * q_values_tp1

After Change


        // {num_critics} * [bs; num_heads; 1] -> concat
        // [bs; num_heads; num_critics] -> min over all critics
        // [bs; num_heads; 1]
        q_values_tp1 = (
            torch.cat(q_values_tp1, dim=-1)
            .min(dim=-1, keepdim=True)[0]
        )

        // [bs; num_heads; 1] -> many-heads view transform
        // [{bs * num_heads}; 1]
        q_target_t = (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 2

Instances


Project Name: catalyst-team/catalyst
Commit Name: 447444fd06594e531ae1141afac78051481e4468
Time: 2019-10-31
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/algorithms/td3.py
Class Name: TD3
Method Name: _base_loss


Project Name: catalyst-team/catalyst
Commit Name: 447444fd06594e531ae1141afac78051481e4468
Time: 2019-10-31
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/algorithms/sac.py
Class Name: SAC
Method Name: _base_loss


Project Name: keras-team/keras
Commit Name: 1d81a20292ca6926e595d06a6cd725dbb104a146
Time: 2019-01-05
Author: raphael.meudec@gmail.com
File Name: keras/initializers.py
Class Name: Identity
Method Name: __call__


Project Name: ClimbsRocks/auto_ml
Commit Name: ba097e3d9e780ff40ab0c513028e4177d3024888
Time: 2016-08-12
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils.py
Class Name: FinalModelATC
Method Name: fit


Project Name: autonomio/talos
Commit Name: e43b9c2895e18251dddc76da6e3a4e81fe00f98a
Time: 2019-08-03
Author: mailme@mikkokotila.com
File Name: talos/reducers/limit_by_metric.py
Class Name:
Method Name: limit_by_metric


Project Name: maciejkula/spotlight
Commit Name: 396303a7b84fe4f8b304a5878c487ff0b3a16097
Time: 2017-07-08
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: CNNNet
Method Name: user_representation