From 8d6a2774ef61f277d106f1e37535422e70bc48dd Mon Sep 17 00:00:00 2001 From: Pierre TASSEL Date: Thu, 8 Oct 2020 20:42:21 +0200 Subject: [PATCH] 'Policy' argument doesn't exist (#11276) policy argument doesn't exist anymore and has been renamed to policy_class --- doc/source/rllib-concepts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/rllib-concepts.rst b/doc/source/rllib-concepts.rst index 7f40ac4ef..891637a13 100644 --- a/doc/source/rllib-concepts.rst +++ b/doc/source/rllib-concepts.rst @@ -564,7 +564,7 @@ Here is an example of creating a set of rollout workers and using them gather ex env = gym.make("CartPole-v0") policy = CustomPolicy(env.observation_space, env.action_space, {}) workers = WorkerSet( - policy=CustomPolicy, + policy_class=CustomPolicy, env_creator=lambda c: gym.make("CartPole-v0"), num_workers=10)