7da71b22f18f5d02ca57a8e5cb5ae47338ae8a31,qucumber/rbm/purification_rbm.py,PurificationRBM,gamma_minus,#PurificationRBM#,379

Before Change


            temp += F.softplus(F.linear(v, self.weights_W, self.hidden_bias)).sum()
            temp -= F.softplus(F.linear(vp, self.weights_W, self.hidden_bias)).sum()
        else:
            temp = torch.mv(v, self.visible_bias).unsqueeze_(1) - torch.mv(
                vp, self.visible_bias
            ).unsqueeze_(0)

After Change


                F.softplus(F.linear(v, self.weights_W, self.hidden_bias)).sum(1)
            )

            temp2 = torch.mv(vp, self.visible_bias) + (
                F.softplus(F.linear(vp, self.weights_W, self.hidden_bias)).sum(1)
            )

            if expand:
                temp = temp1.unsqueeze_(1) - temp2.unsqueeze_(0)
            else:
                temp = temp1 - temp2

        return 0.5 * temp
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PIQuIL/QuCumber
Commit Name: 7da71b22f18f5d02ca57a8e5cb5ae47338ae8a31
Time: 2019-12-19
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/purification_rbm.py
Class Name: PurificationRBM
Method Name: gamma_minus


Project Name: PIQuIL/QuCumber
Commit Name: 7da71b22f18f5d02ca57a8e5cb5ae47338ae8a31
Time: 2019-12-19
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/purification_rbm.py
Class Name: PurificationRBM
Method Name: gamma_plus


Project Name: tristandeleu/pytorch-maml-rl
Commit Name: f0a691823edd2ee74f7f8de586ef9d44d665db0c
Time: 2020-01-09
Author: tristan.deleu@gmail.com
File Name: maml_rl/baseline.py
Class Name: LinearFeatureBaseline
Method Name: forward