AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

AssertionError in Stock_NeurIPS2018_2_Train.ipynb

Đang mở
#64 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Jupyter Notebook
Star
1.2k
Fork
435
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](https://localhost:8080/#) 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 (, , , ) as action spaces but Box(-1.0, 1.0, (29,), float32) was provided

Could some one help what this issue?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.