adds example usage to spaces (#173)

This commit is contained in:
Rafael Cosman
2016-06-11 23:10:58 -07:00
committed by Greg Brockman
parent a4c35f82c0
commit f254dd197e
3 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ class Box(gym.Space):
"""
A box in R^n.
I.e., each coordinate is bounded.
Example usage:
self.action_space = spaces.Box(low=-10, high=10, shape=(1,))
"""
def __init__(self, low, high, shape=None):
"""