AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

FinRL_HyperparameterTuning_Optuna.ipynb has error

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

説明

the file [FinRL_HyperparameterTuning_Optuna.ipynb](https://github.com/AI4Finance-Foundation/FinRL-Tutorials/blob/master/4-Optimization/FinRL_HyperparameterTuning_Optuna.ipynb) gives me the following error

```
TypeError Traceback (most recent call last)
Cell In[17], line 16
3 env_kwargs = {
4 "hmax": 100,
5 "initial_amount": 1000000,
(...)
13
14 }
15 #Instantiate the training gym compatible environment
---> 16 e_train_gym = StockTradingEnv(df = train, **env_kwargs)

TypeError: __init__() missing 1 required positional argument: 'num_stock_shares'
```

when defining env_kwargs, how can I fix this?

just adding some random number for num_stock_shares throws the error `TypeError: can only concatenate list (not "int") to list`

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

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

評価

この issue はまだ評価されていません。

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

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