class_docstr: Add Gaussian noise to the action taken by the deterministic policy.
  
  Args:
      env_spec (EnvSpec): Environment spec to explore.
      policy (garage.Policy): Policy to wrap.
      total_timesteps (int): Total steps in the training, equivalent to
          max_episode_length * n_epochs.
      max_sigma (float): Action noise standard deviation at the start of
          exploration.
      min_sigma (float): Action noise standard deviation at the end of the
          decay period.
      decay_ratio (float): Fraction of total steps for epsilon decay.
class_docstr_tok: ["Add","Gaussian","noise","to","the","action","taken","by","the","deterministic","policy",".","Args",":","env_spec","(","EnvSpec",")",":","Environment","spec","to","explore",".","policy","(","garage.Policy",")",":","Policy","to","wrap",".","total_timesteps","(","int",")",":","Total","steps","in","the","training",",","equivalent","to","max_episode_length","*","n_epochs",".","max_sigma","(","float",")",":","Action","noise","standard","deviation","at","the","start","of","exploration",".","min_sigma","(","float",")",":","Action","noise","standard","deviation","at","the","end","of","the","decay","period",".","decay_ratio","(","float",")",":","Fraction","of","total","steps","for","epsilon","decay","."]
code: def __init__(
      self,
      env_spec,
      policy,
      total_timesteps,
      max_sigma=1.0,
      min_sigma=0.1,
      decay_ratio=1.0,
  ):
      assert isinstance(env_spec.action_space, akro.Box)
      assert len(env_spec.action_space.shape) == 1
      super().__init__(policy)
      self._max_sigma = max_sigma
      self._min_sigma = min_sigma
      self._decay_period = int(total_timesteps * decay_ratio)
      self._action_space = env_spec.action_space
      self._decrement = (
          self._max_sigma - self._min_sigma
      ) / self._decay_period
      self._total_env_steps = 0
      self._last_total_env_steps = 0
  
file_path: garage/src/garage/np/exploration_policies/add_gaussian_noise.py
imports: import akro
  from dowel import tabular
  import numpy
  from garage.np.exploration_policies.exploration_policy import ExplorationPolicy
label_desc: Use image node_id 1 to create a new AddGaussianNoise object from inherited base classes: ExplorationPolicy with example: obj = AddGaussianNoise(env_spec, policy, total_timesteps, max_sigma, min_sigma, decay_ratio)