21fa4e7e38567e083f98c559f8f2ae0c5573ba0f,ch15/lib/model.py,AgentA2C,__call__,#AgentA2C#Any#Any#,56
Before Change
mu_v, var_v = self.net(states_v)
mu = mu_v.data.cpu().numpy()
sigma = torch.sqrt(var_v).data.cpu().numpy()
actions = np.random.normal(mu, sigma)
actions = np.clip(actions, -1, 1)
return actions, agent_states
After Change
mu_v = self.net(states_v)
mu = mu_v.data.cpu().numpy()
logstd = self.net.logstd.data.cpu().numpy()
actions = mu + np.exp(logstd) * np.random.normal(size=logstd.shape)
actions = np.clip(actions, -1, 1)
return actions, agent_states
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 7
Instances
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 21fa4e7e38567e083f98c559f8f2ae0c5573ba0f
Time: 2018-02-11
Author: max.lapan@gmail.com
File Name: ch15/lib/model.py
Class Name: AgentA2C
Method Name: __call__
Project Name: Shmuma/ptan
Commit Name: 3b9186b34ab974741c5255f975269512486c06b0
Time: 2017-10-04
Author: max.lapan@gmail.com
File Name: ptan/agent.py
Class Name: PolicyAgent
Method Name: __call__
Project Name: interactiveaudiolab/nussl
Commit Name: 055caff00ce0b411c26a3d37ccc538a5f3f47ab9
Time: 2020-03-11
Author: prem@u.northwestern.edu
File Name: nussl/separation/deep/deep_clustering.py
Class Name: DeepClustering
Method Name: extract_features
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
Project Name: dpressel/mead-baseline
Commit Name: e04ca1cfca8f2c7ae3918447fbd7c3b6aa1f2f59
Time: 2017-07-16
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/tagger/train.py
Class Name: TaggerTrainerPyTorch
Method Name: process_output