Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding the observation space in the Env #36

Open
emjay032 opened this issue Apr 30, 2021 · 0 comments
Open

Question regarding the observation space in the Env #36

emjay032 opened this issue Apr 30, 2021 · 0 comments

Comments

@emjay032
Copy link

Why is self.observation_space bounded from 0 to np.inf when the techinal indicators (e.g. MACD) can take negative values?

Should it not be:

self.observation_space = spaces.Box(low=-np.inf, high=np.inf, shape = (Obs_Dim,))

instead of

self.observation_space = spaces.Box(low=0 high=np.inf, shape = (Obs_Dim,))

with Obs_Dim = Balance+num_stock+_num_shares_holding_per_stock+num_tech_indicators*num_stocks

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant