Skip to content

Commit 5fdcb46

Browse files
committed
No need for low/high in MultiBinary space
1 parent 2adc68f commit 5fdcb46

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ A client can communicate with Gymie via JSON, with the following format:
149149
{
150150
"name": "MultiBinary",
151151
"n": 5,
152-
"shape": [5],
153-
"low": [0],
154-
"high": [1]
152+
"shape": [5]
155153
}
156154

157155
// TODO MultiDiscrete
@@ -173,8 +171,8 @@ A client can communicate with Gymie via JSON, with the following format:
173171
{
174172
"name": "Box",
175173
"shape": [2],
176-
"low": [-1, -1, -1],
177-
"high": [1, 1, 1]
174+
"low": [-1, -1],
175+
"high": [1, 1]
178176
}
179177
```
180178
- <a name="action_sample">`action_sample`</a>: Generates a random action.

gymie/api.py

-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ def space_info(space):
199199
elif name == 'MultiBinary':
200200
info['n'] = space.n
201201
info['shape'] = space.shape
202-
info['low'] = [0]
203-
info['high'] = [1]
204202
elif name == 'MultiDiscrete':
205203
pass
206204

tests/test_gymie_retro.py

-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ def test_action_space(self):
121121
self.assertEqual(info['name'], 'MultiBinary')
122122
self.assertEqual(info['n'], env.action_space.n)
123123
self.assertEqual(info['shape'], [env.action_space.n])
124-
self.assertEqual(info['low'], [0])
125-
self.assertEqual(info['high'], [1])
126124

127125
def test_action_sample(self):
128126
instance_id = self.make_env('Airstriker-Genesis')

0 commit comments

Comments
 (0)