ray.rllib.utils.exploration.gaussian_noise.GaussianNoise#
- class ray.rllib.utils.exploration.gaussian_noise.GaussianNoise(action_space: gymnasium.spaces.Space, *, framework: str, model: ModelV2, random_timesteps: int = 1000, stddev: float = 0.1, initial_scale: float = 1.0, final_scale: float = 0.02, scale_timesteps: int = 10000, scale_schedule: Schedule | None = None, **kwargs)[source]#
Bases:
Exploration
An exploration that adds white noise to continuous actions.
If explore=True, returns actions plus scale (annealed over time) x Gaussian noise. Also, some completely random period is possible at the beginning.
If explore=False, returns the deterministic action.
Methods
Initializes a GaussianNoise instance.
Hook for preparations before policy.compute_actions() is called.
May add optimizer(s) to the Policy's own
optimizers
.Returns the current scale value.
Handles necessary exploration logic at the end of an episode.
Handles necessary exploration logic at the beginning of an episode.
Handles post-processing of done episode trajectories.