Change observation space type to float64

This commit is contained in:
AminHP
2022-06-25 15:02:09 +04:30
parent 09108ebb1f
commit 4581139dd4

View File

@@ -34,7 +34,7 @@ class TradingEnv(gym.Env):
# spaces
self.action_space = spaces.Discrete(len(Actions))
self.observation_space = spaces.Box(low=-np.inf, high=np.inf, shape=self.shape, dtype=np.float32)
self.observation_space = spaces.Box(low=-np.inf, high=np.inf, shape=self.shape, dtype=np.float64)
# episode
self._start_tick = self.window_size