ray.rllib.policy.policy.Policy.__init__#
- Policy.__init__(observation_space: gymnasium.Space, action_space: gymnasium.Space, config: dict)[source]#
Initializes a Policy instance.
- Parameters:
observation_space – Observation space of the policy.
action_space – Action space of the policy.
config – A complete Algorithm/Policy config dict. For the default config keys and values, see rllib/algorithm/algorithm.py.