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

AssertionError in Stock_NeurIPS2018_2_Train.ipynb #64

Open
onchiptech opened this issue May 22, 2023 · 0 comments
Open

AssertionError in Stock_NeurIPS2018_2_Train.ipynb #64

onchiptech opened this issue May 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@onchiptech
Copy link

While executing the notebook Stock_NeurIPS2018_2_Train.ipynb the following line is causing an exception
model_a2c = agent.get_model("a2c")

/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/base_class.py in init(self, policy, env, learning_rate, policy_kwargs, tensorboard_log, verbose, device, support_multi_env, monitor_wrapper, seed, use_sde, sde_sample_freq, supported_action_spaces)
170
171 if supported_action_spaces is not None:
--> 172 assert isinstance(self.action_space, supported_action_spaces), (
173 f"The algorithm only supports {supported_action_spaces} as action spaces "
174 f"but {self.action_space} was provided"

AssertionError: The algorithm only supports (<class 'gym.spaces.box.Box'>, <class 'gym.spaces.discrete.Discrete'>, <class 'gym.spaces.multi_discrete.MultiDiscrete'>, <class 'gym.spaces.multi_binary.MultiBinary'>) as action spaces but Box(-1.0, 1.0, (29,), float32) was provided

Could some one help what this issue?

@YangletLiu YangletLiu added the bug Something isn't working label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants