AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.4k stars 2.29k forks source link

EvaluatorProc.__init__() missing 1 required positional argument: 'args' #1019

Open BalazsHi opened 1 year ago

BalazsHi commented 1 year ago

Hi All,

I'm trying to train an agent from ElegantRL in StockTradingEnv on Windows11 using Jupiterlab. I'm using the codes from 'FinRL: Compare ElegantRL, RLlib, and Stablebaselines3'.

When arriving at running the 'train' function I get the following error: EvaluatorProc.init() missing 1 required positional argument: 'args'.

I believe in the current Finrl/finrl/agents/elegantrl/'model.py' file contains references to 'Arguments', 'init_agent', and 'train_and_evaluate' from elegantrl.train. It seems to me that the corresponding new names are 'Config', 'Worker', and 'EvaluatorProc', respectively. I made these name changes in my file (I got errors with the previous names).

However, when running the 'train' function after making these changes the above mentioned error pops up related to the EvaluatorProc. I tried to find out how to fix this and tried several versions, but I haven't managed to figure out how to make it run.

I'm not sure if anybody else has had similar issues.

Could you please help me with this?

Thank you!