Action Noise¶
-
class
stable_baselines3.common.noise.
NormalActionNoise
(mean: numpy.ndarray, sigma: numpy.ndarray)[source]¶ A Gaussian action noise
- Parameters
mean – (np.ndarray) the mean value of the noise
sigma – (np.ndarray) the scale of the noise (std here)
-
class
stable_baselines3.common.noise.
OrnsteinUhlenbeckActionNoise
(mean: numpy.ndarray, sigma: numpy.ndarray, theta: float = 0.15, dt: float = 0.01, initial_noise: Optional[numpy.ndarray] = None)[source]¶ An Ornstein Uhlenbeck action noise, this is designed to approximate Brownian motion with friction.
Based on http://math.stackexchange.com/questions/1287634/implementing-ornstein-uhlenbeck-in-matlab
- Parameters
mean – (np.ndarray) the mean of the noise
sigma – (np.ndarray) the scale of the noise
theta – (float) the rate of mean reversion
dt – (float) the timestep for the noise
initial_noise – (Optional[np.ndarray]) the initial value for the noise output, (if None: 0)
-
class
stable_baselines3.common.noise.
VectorizedActionNoise
(base_noise: stable_baselines3.common.noise.ActionNoise, n_envs: int)[source]¶ A Vectorized action noise for parallel environments.
- Parameters
base_noise – ActionNoise The noise generator to use
n_envs – (int) The number of parallel environments