I am following Ray RLlib Tutorial, and have a TypeError for below codes. Wondering how to solve the issue?
from ray.rllib.algorithms.dqn import DQNConfig
algo = DQNConfig()
.environment(env=MultiAgentMaze).framework(“torch”)
.multi_agent(
policies={
“policy_1”: (
None, env.observation_space, env.action_space, {“gamma”: 0.80}
),
“policy_2”: (
None, env.observation_space, env.action_space, {“gamma”: 0.95}
),
},
policy_mapping_fn = lambda agent_id: f"policy_{agent_id}",
).build()
print(algo.train())
TypeError: _generator_ctor() takes from 0 to 1 positional arguments but 2 were given