OpenAI Gym Observation Space with Discrete and Box values

Viewed 921

I'm trying to create a custom environment for OpenAi Gym.

My observation space will have some values such as the following:

  • readings: 10x -1 to 1 continuous
  • count: 0 to 1000 discrete
  • on/off: 0 or 1 discrete

From the docs it seems I can create a Box with some low and high values or Discrete values or Tuples.

So if I create a Box with these 12 things (10 continuous, 2 discrete) and define it as a float32 will this still work ? or is there a better way ?

I have tried defining it as a Dict space, but it appears this is only for GoalEnv and has a very specific set of keys.

0 Answers
Related