8ed4339a6766191ca067ad76353c8fa480ba41ac,src/garage/np/exploration_policies/add_gaussian_noise.py,AddGaussianNoise,get_actions,#AddGaussianNoise#,67
Before Change
actions, agent_infos = self.policy.get_actions(observations)
sigma = self._max_sigma - (self._max_sigma - self._min_sigma) * min(
1.0, self._iteration * 1.0 / self._decay_period)
return np.clip(actions + np.random.normal(size=actions.shape) * sigma,
self._action_space.low,
self._action_space.high), agent_infos
After Change
actions, agent_infos = self.policy.get_actions(observations)
for itr, _ in enumerate(actions):
actions[itr] = np.clip(
actions[itr] +
np.random.normal(size=actions[itr].shape) * self._sigma(),
self._action_space.low, self._action_space.high)
self._total_env_steps += 1
return actions, agent_infos
def _sigma(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: rlworkgroup/garage
Commit Name: 8ed4339a6766191ca067ad76353c8fa480ba41ac
Time: 2020-09-14
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/np/exploration_policies/add_gaussian_noise.py
Class Name: AddGaussianNoise
Method Name: get_actions
Project Name: bethgelab/foolbox
Commit Name: 39c8e82e608d79f0e06cc5e11e600015a9eb9f88
Time: 2020-08-09
Author: 5895436+zimmerrol@users.noreply.github.com
File Name: foolbox/attacks/gen_attack.py
Class Name: GenAttack
Method Name: apply_noise
Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: 919426bb58a7d1daf1e9d2e89f172aa6a5b86d85
Time: 2017-11-22
Author: clement.pinard@parrot.com
File Name: test_disp.py
Class Name:
Method Name: main
Project Name: rlworkgroup/garage
Commit Name: 8ed4339a6766191ca067ad76353c8fa480ba41ac
Time: 2020-09-14
Author: 31981600+yeukfu@users.noreply.github.com
File Name: src/garage/np/exploration_policies/add_gaussian_noise.py
Class Name: AddGaussianNoise
Method Name: get_action