ray.rllib.callbacks.callbacks.RLlibCallback.on_create_policy#

RLlibCallback.on_create_policy(*, policy_id: str, policy: Policy) None[source]#

Callback run whenever a new policy is added to an algorithm.

Parameters:
  • policy_id – ID of the newly created policy.

  • policy – The policy just created.