mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:11:38 +08:00
updated multiagent docs (#1523)
* updated multiagent docs * Update rllib.rst * Update multiagent_mountaincar_env.py * Update multiagent_pendulum_env.py
This commit is contained in:
committed by
Eric Liang
parent
81a4be8f65
commit
639df85fda
@@ -22,8 +22,8 @@ class MultiAgentMountainCarEnv(MountainCarEnv):
|
||||
self.viewer = None
|
||||
|
||||
self.action_space = [Discrete(3) for _ in range(2)]
|
||||
self.observation_space = Tuple(tuple(Box(self.low, self.high)
|
||||
for _ in range(2)))
|
||||
self.observation_space = Tuple([
|
||||
Box(self.low, self.high) for _ in range(2)])
|
||||
|
||||
self._seed()
|
||||
self.reset()
|
||||
|
||||
@@ -24,8 +24,8 @@ class MultiAgentPendulumEnv(PendulumEnv):
|
||||
self.action_space = [Box(low=-self.max_torque / 2,
|
||||
high=self.max_torque / 2, shape=(1,))
|
||||
for _ in range(2)]
|
||||
self.observation_space = Tuple(tuple(Box(low=-high, high=high)
|
||||
for _ in range(2)))
|
||||
self.observation_space = Tuple([
|
||||
Box(low=-high, high=high) for _ in range(2)])
|
||||
|
||||
self._seed()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user