Closed simonesalvucci closed 4 years ago
I've just realised I didn't reset the environment before running check_env()
Doing that solves the issue.
Actually I was wrong, resetting the environment doesn't solve the issue. Sorry about that...
Hi.
It was a small bug and I fixed it. Thank you!
The fix solves the issue, thank you!
Hi there,
I've encountered an issue running the following code:
The output I get is:
AssertionError: The observation returned by the reset() method does not match the given observation space
I've debugged your
TradingEnv
class and did't see any issue, so I've thought the problem could be incheck_env()
.I've debugged
check_env()
as well, but everything seems fine there. Then I went for the last test which was runningcheck_env()
with the classicCartPole-v0
from gym, herecheck_env()
didn't trow any exception and run smoothly.This is the code for the
CartPole-v0
:Do you have any clue why this is happening? I'm confused lol