AI4Finance-Foundation / ElegantRL

Massively Parallel Deep Reinforcement Learning. 🔥
https://ai4finance.org
Other
3.74k stars 850 forks source link

none of your example works... #326

Open softd1sk opened 1 year ago

softd1sk commented 1 year ago

Traceback (most recent call last): File "C:*\marco\Desktop\Stock_invester\model_trainer.py", line 14, in from finrl.agents.elegantrl.models import DRLAgent as DRLAgent_erl File "C:\Users*\AppData\Local\miniconda3\envs\Stock_invester\lib\site-packages\finrl\agents\elegantrl\models.py", line 11, in from elegantrl.train.config import Arguments ImportError: cannot import name 'Arguments' from 'elegantrl.train.config' (C:\Users***\AppData\Local\miniconda3\envs\Stock_invester\lib\site-packages\elegantrl\train\config.py)

Yonv1943 commented 1 year ago

ImportError: cannot import name 'Arguments' from 'elegantrl.train.config'

Change Arguments to Config can fix this error.

form elegantrl.train.config import Arguments
args = Arguemtns(...)

↓

form elegantrl.train.config import Config
args = Config(...)