FinRL
FinRL copied to clipboard
no argument class or init_agent function implemented in elgantRL
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to 'finrl/agents/elegantrl/model.py'
- 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
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.
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.