FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

no argument class or init_agent function implemented in elgantRL

Open rewat7 opened this issue 1 year ago • 1 comments

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):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

rewat7 avatar Aug 19 '23 08:08 rewat7

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.

mmmarchetti avatar Aug 24 '23 12:08 mmmarchetti