[rllib] Fix stats collection and some docs bugs since the refactoring (#2361)

* fix

* fix pbt example

* fix

* fix

* single thread by default

* vec

* fix

* fix
This commit is contained in:
Eric Liang
2018-07-07 13:29:20 -07:00
committed by GitHub
parent 9a6e329325
commit d24f19fd1e
13 changed files with 60 additions and 34 deletions
@@ -5,6 +5,7 @@ import gym
from gym.spaces import Box, Discrete, Tuple
from gym.envs.registration import EnvSpec
import numpy as np
import sys
import ray
from ray.rllib.agents.agent import get_agent_class
@@ -117,4 +118,12 @@ class ModelSupportedSpaces(unittest.TestCase):
if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == "--smoke":
ACTION_SPACES_TO_TEST = {
"discrete": Discrete(5),
}
OBSERVATION_SPACES_TO_TEST = {
"vector": Box(0.0, 1.0, (5,), dtype=np.float32),
"atari": Box(0.0, 1.0, (210, 160, 3), dtype=np.float32),
}
unittest.main(verbosity=2)