AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

AssertionError in Stock_NeurIPS2018_2_Train.ipynb

オープン
#64 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Jupyter Notebook
スター
1.2k
フォーク
435
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by running Stock_NeurIPS2018_2_Train.ipynb and reproduce the failure at model_a2c = agent.get_model("a2c"). Then inspect the stable_baselines3 base_class.py assertion and the notebook's environment and action_space setup. Done means the notebook can create the A2C model without the reported action-space assertion.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
jupyter-notebook, python
領域
machine-learning
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。