AI4Finance-Foundation / FinRL

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

no argument class or init_agent function implemented in elgantRL #1074

Open rewat7 opened 10 months ago

rewat7 commented 10 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'finrl/agents/elegantrl/model.py'
  2. See error

Expected behavior The argument class can not be imported as it's not implemented. init_agent function used to load the pre-trained Screenshot 2023-08-19 at 2 00 03 PM model is not implemented hence cant be imported

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

mmmarchetti commented 10 months ago

The ElegantRL updated the library which has resulted in changes to its structure, specifically the removal of the init_agent function. Could you provide the full error traceback? This would give more clarity on where things are breaking and how best to approach a fix.

It would be helpful to understand how you are using the code. Are you trying to run a specific script or function?

In the meantime, as a temporary solution, you could consider using an older version of the ElegantRL library where the init_agent function is still present. This can be done by specifying the version number when installing via pip. However, this is just a temporary workaround and might not be the best solution in the long run.