AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL
Might be a bug in `AgentPPO`
オープン
- 主要言語
- Python
- スター
- 4.4k
- フォーク
- 978
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In `AgnetPPO`, `act_target` and `cri_target` may not be properly initialized and are only set to `None` in the parent class, which could lead to errors when calling `save_or_load()`.
The same issue may also occur in agents such as `AgentDiscretePPO`, `AgentDiscreteA2C`, and other similar agents.
I encountered this problem while training with `AgentPPO` in a custom environment. It was resolved by initializing `act_target` and `cri_target` with `self.act` and `self.cri` , respectively, during the initialization of AgentPPO.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。