mirror of
https://github.com/wassname/Run-Skeleton-Run.git
synced 2026-06-27 19:45:48 +08:00
19 lines
495 B
Python
19 lines
495 B
Python
class VecEnv(object):
|
|
"""
|
|
Vectorized environment base class
|
|
"""
|
|
def step(self, vac):
|
|
"""
|
|
Apply sequence of actions to sequence of environments
|
|
actions -> (observations, rewards, news)
|
|
|
|
where 'news' is a boolean vector indicating whether each element is new.
|
|
"""
|
|
raise NotImplementedError
|
|
def reset(self):
|
|
"""
|
|
Reset all environments
|
|
"""
|
|
raise NotImplementedError
|
|
def close(self):
|
|
pass |