bbd50fcbc6d67b7acba0a794b1cdb47ccf5731e2,ml/rl/models/actor.py,DirichletFullyConnectedActor,_get_concentration,#DirichletFullyConnectedActor#Any#,196

Before Change


        Get concentration of distribution.
        https://stats.stackexchange.com/questions/244917/what-exactly-is-the-alpha-in-the-dirichlet-distribution
        
        return self.fc(state.float_features)

    def get_log_prob(self, state, action):
        with torch.no_grad():
            concentration = self._get_concentration(state)

After Change


        Get concentration of distribution.
        https://stats.stackexchange.com/questions/244917/what-exactly-is-the-alpha-in-the-dirichlet-distribution
        
        return self.fc(state.float_features) + self.EPSILON

    def get_log_prob(self, state, action):
        with torch.no_grad():
            concentration = self._get_concentration(state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebookresearch/Horizon
Commit Name: bbd50fcbc6d67b7acba0a794b1cdb47ccf5731e2
Time: 2019-05-10
Author: edoardoc@fb.com
File Name: ml/rl/models/actor.py
Class Name: DirichletFullyConnectedActor
Method Name: _get_concentration


Project Name: dmlc/dgl
Commit Name: af61e2fbb45c53df3ff2a91f81a2026a8f66d90d
Time: 2020-03-29
Author: expye@outlook.com
File Name: python/dgl/nn/tensorflow/conv/gatconv.py
Class Name: GATConv
Method Name: call


Project Name: dmlc/dgl
Commit Name: e4ddafe9512a3befbe91370300f85efd9c4acee8
Time: 2021-01-28
Author: 43209734+Ericcsr@users.noreply.github.com
File Name: python/dgl/nn/pytorch/conv/dotgatconv.py
Class Name: DotGatConv
Method Name: forward