(self, env, scale=0.01)
Initializes a new action noise Wrapper.

    Args:
      env: The control suite environment to wrap.
      scale: The standard deviation of the noise, expressed as a fraction
        of the max-min range for each action dimension.

    Raises:
      ValueError: If any of the action dimensions of the wrapped environment are
        unbounded.
Initializes a new action noise Wrapper.
Initializes a new action noise Wrapper .
def __init__(self, env, scale=0.01):
    """Initializes a new action noise Wrapper.

    Args:
      env: The control suite environment to wrap.
      scale: The standard deviation of the noise, expressed as a fraction
        of the max-min range for each action dimension.

    Raises:
      ValueError: If any of the action dimensions of the wrapped environment are
        unbounded.
    """
    action_spec = env.action_spec()
    if not (np.all(np.isfinite(action_spec.minimum)) and
            np.all(np.isfinite(action_spec.maximum))):
      raise ValueError(_BOUNDS_MUST_BE_FINITE.format(action_spec=action_spec))
    self._minimum = action_spec.minimum
    self._maximum = action_spec.maximum
    self._noise_std = scale * (action_spec.maximum - action_spec.minimum)
    self._env = env
def __init__ ( self , env , scale = 0.01 ) : action_spec = env . action_spec ( ) if not ( np . all ( np . isfinite ( action_spec . minimum ) ) and np . all ( np . isfinite ( action_spec . maximum ) ) ) : raise ValueError ( _BOUNDS_MUST_BE_FINITE . format ( action_spec = action_spec ) ) self . _minimum = action_spec . minimum self . _maximum = action_spec . maximum self . _noise_std = scale * ( action_spec . maximum - action_spec . minimum ) self . _env = env