b7fca701be1beffe4077e11c0c7df0db7605ac68,src/garage/torch/policies/gaussian_mlp_policy.py,GaussianMLPPolicy,get_action,#GaussianMLPPolicy#Any#,38

Before Change


            dist = self.forward(observation)
            std = dist.variance**0.5
            return dist.rsample().squeeze(0).numpy(), dict(
                mean=dist.mean.squeeze(0), log_std=np.log(std).squeeze(0))

    def get_actions(self, observations):
        Get actions given observations.

After Change


            dist = self.forward(observation)
            return (dist.rsample().squeeze(0).numpy(),
                    dict(mean=dist.mean.squeeze(0).numpy(),
                         log_std=(dist.variance**.5).log().squeeze(0).numpy()))

    def get_actions(self, observations):
        Get actions given observations.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rlworkgroup/garage
Commit Name: b7fca701be1beffe4077e11c0c7df0db7605ac68
Time: 2019-09-25
Author: 43084978+yonghyuc@users.noreply.github.com
File Name: src/garage/torch/policies/gaussian_mlp_policy.py
Class Name: GaussianMLPPolicy
Method Name: get_action


Project Name: PIQuIL/QuCumber
Commit Name: 2ba68b4be3249b7297ea26b1ff5c790bd0d4794f
Time: 2019-12-22
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/unitaries.py
Class Name:
Method Name: rotate_rho_prob


Project Name: interactiveaudiolab/nussl
Commit Name: 2ffbfa3a6bd3b8de8e21a762489346054dcd9ccc
Time: 2020-03-12
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_mask_estimation.py
Class Name: DeepMaskEstimation
Method Name: extract_features