Check that an environment follows Gym API. This is particularly useful when using a custom environment. Please take a look at https://github.com/openai/gym/blob/master/gym/core.py for more information about the API. It also optionally check that the environment is compatible with Stable-Basel...
Improved error message when mixing Gym API with VecEnv API (see GH#1694) Add support for setting options at reset with VecEnv via the set_options() method. Same as seeds logic, options are reset at the end of an episode (@ReHoss) Added rollout_buffer_class and rollout_buffer_kwargs ...
(self, action): # TODO: # Truncated is not implemented # https://stable-baselines3.readthedocs.io/en/master/guide/vec_envs.html#vecenv-api-vs-gym-api self.env.act(np.array([action], dtype=np.int32)) obs, rew, first, info = self.observe() return obs, rew, first, False, info ...
ValueError: You have passed a tuple to the predict() function instead of a Numpy array or a Dict. You are probably mixing Gym API with SB3 VecEnv API: obs, info = env.reset() (Gym) vs obs = vec_env.reset() (SB3 VecEnv).[Bug]: bug title...
Improved error message when mixing Gym API with VecEnv API (see GH#1694) Add support for setting options at reset with VecEnv via the set_options() method. Same as seeds logic, options are reset at the end of an episode (@ReHoss) Added rollout_buffer_class and rollout_buffer_kwargs ...