algorithms.util.action_perturbator.GaussianActionPerturbator¶
- class algorithms.util.action_perturbator.GaussianActionPerturbator(noise: float)[source]¶
Bases:
ActionPerturbator
Implements a Gaussian (σ) noise.
Methods
- perturb(action, clip=True)[source]¶
Add a noise to the proposed action.
- Parameters:
action (np.ndarray) – A 1D vector of values representing the action.
clip – Controls whether to clip the noised values in [0,1].
- Returns:
A vector of noised values, with the same shape as action.
- Return type:
np.ndarray