Closed aheagel closed 2 years ago
After debugging for a while I found out that the reset function needs to be in float32 whereas the returned value was float64. Hence changing the observation_space from https://github.com/AminHP/gym-anytrading/blob/09108ebb1f75c548b7987dbd4b493b70f1c6f7cb/gym_anytrading/envs/trading_env.py#L37
to
self.observation_space = spaces.Box(low=-np.inf, high=np.inf, shape=self.shape, dtype=np.float64)
seems to solve the problem in my case
Hi @aheagel ,
It works for me too. Thanks for the fix. Do you want to create a pull request?
Hi @aheagel ,
It works for me too. Thanks for the fix. Do you want to create a pull request?
I'm still very new to this community and I haven't yet figured out how to use git. So i think it is better if you do it in case i mess up.
Alright. As you wish :)
It seems that the example code at https://github.com/AminHP/gym-anytrading#a-complete-example is broken. Running the code returns: Perhaps I've missed something?