AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

FinRL_HyperparameterTuning_Optuna.ipynb has error

Open
#23 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
1.2k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.