mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
[rllib] improve custom env docs (#1447)
* env docs * add env * update env * Fri Jan 19 18:55:34 PST 2018
This commit is contained in:
@@ -128,7 +128,7 @@ def get_preprocessor(space):
|
||||
obs_shape = space.shape
|
||||
print("Observation shape is {}".format(obs_shape))
|
||||
|
||||
if obs_shape == ():
|
||||
if isinstance(space, gym.spaces.Discrete):
|
||||
print("Using one-hot preprocessor for discrete envs.")
|
||||
preprocessor = OneHotPreprocessor
|
||||
elif obs_shape == ATARI_OBS_SHAPE:
|
||||
|
||||
Reference in New Issue
Block a user