Artificial Intelligence, Finance, Reinforcement Learning, Data Science, Innovation.
action space defines the possible actions. They will be assigned a numerical value. For example, in my case to hold is 0, to buy is 1, and 2 is sell. self.observation_space = spaces.Box(low=0, high=1, shape=(len(df.columns),), dtype=np.float32) This line I’ve made dynamic so you shouldn’t need to