mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Update error message
This commit is contained in:
parent
88d4f44d55
commit
03ecb17ef6
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ class BaseRLModel(object):
|
||||||
:param env: (Gym Environment) The environment for learning a policy
|
:param env: (Gym Environment) The environment for learning a policy
|
||||||
"""
|
"""
|
||||||
if self.check_env(env, self.observation_space, self.action_space) is False:
|
if self.check_env(env, self.observation_space, self.action_space) is False:
|
||||||
raise ValueError("Given environment is not compatible with model")
|
raise ValueError("The given environment is not compatible with model: observation and action spaces do not match")
|
||||||
# it must be coherent now
|
# it must be coherent now
|
||||||
# if it is not a VecEnv, make it a VecEnv
|
# if it is not a VecEnv, make it a VecEnv
|
||||||
if not isinstance(env, VecEnv):
|
if not isinstance(env, VecEnv):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue