FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

ElegentRL agent is not trained

Open khanhphan1311 opened this issue 2 years ago • 1 comments

I tried running ElegentRL agent many times for test data in the same environment but the account value results were changed drammatically. I think the agent is not trained. P/s: I also tried not to run train.py and still run test.py, the agent still predicted and not load trained_model. Here is the environment: Screenshot_2

khanhphan1311 avatar Apr 12 '22 10:04 khanhphan1311

Thank you for reporting this bug.

We will reproduce the bug and fix it using the following code. (The following cude uses PPO and you use SAC)

https://github.com/AI4Finance-Foundation/FinRL/blob/bacca166e083f7ead676aad6965f6f1004044b5f/finrl/main.py#L62-L76

Yonv1943 avatar Apr 14 '22 03:04 Yonv1943