garage.np.policies.uniform_random_policy
¶
Uniform random exploration strategy.
- class UniformRandomPolicy(env_spec)[source]¶
Bases:
garage.np.policies.policy.Policy
Action taken is uniformly random.
- Parameters
env_spec (EnvSpec) – Environment spec to explore.
- property env_spec¶
Policy environment specification.
- Returns
Environment specification.
- Return type
- property observation_space¶
Observation space.
- Returns
The observation space of the environment.
- Return type
akro.Space
- property action_space¶
Action space.
- Returns
The action space of the environment.
- Return type
akro.Space
- reset(do_resets=None)[source]¶
Reset the state of the exploration.
- Parameters
do_resets (List[bool] or numpy.ndarray or None) – Which vectorization states to reset.