entity-neural-network / incubator

Collection of in-progress libraries for entity neural networks.
Apache License 2.0
29 stars 10 forks source link

Make obs_space and action_space methods #224

Closed cswinter closed 2 years ago

cswinter commented 2 years ago

Changes Environment.obs_space and Environment.action_space from class to instance methods. Also removes the env_cls method on VecEnv in favor of obs_space and action_space methods. This makes it much easier to create environment wrappers, environments where the action/observation space depend on configuration, and VecEnv implementations which don't have an underlying Environment class.