mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-18 04:49:12 +00:00
Update spaces.py method definition (#1579)
* Updated spaces.py method description No longer sampling from uniform distribution always, changing distribution * update space.py sampling method description
This commit is contained in:
committed by
pzhokhov
parent
72806c544a
commit
5c11d19937
@@ -14,7 +14,8 @@ class Space(object):
|
|||||||
self.seed()
|
self.seed()
|
||||||
|
|
||||||
def sample(self):
|
def sample(self):
|
||||||
"""Uniformly randomly sample a random element of this space. """
|
"""Randomly sample an element of this space. Can be
|
||||||
|
uniform or non-uniform sampling based on boundedness of space."""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def seed(self, seed=None):
|
def seed(self, seed=None):
|
||||||
|
Reference in New Issue
Block a user