ray.rllib.algorithms.algorithm.Algorithm.get_policy#

Algorithm.get_policy(policy_id: str = 'default_policy') Policy[source]#

Return policy for the specified id, or None.

Parameters:

policy_id – ID of the policy to return.