AI4Finance-Foundation / AI4Finance-Foundation/FinRL_Podracer
'numpy.ndarray' object has no attribute 'ratio_clip'
オープン
- 主要言語
- Python
- スター
- 507
- フォーク
- 121
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When I train AgentDDPG, this error happen.
In elegant_finrl/agent.py line 278 function select_action:
```
def select_action(self, state) -> np.ndarray:
states = torch.as_tensor((state,), dtype=torch.float32, device=self.device).detach_()
action = self.act(states)[0].cpu().numpy()
return (action + self.ou_noise()).ratio_clip(-1, 1)
```
`action + self.ou_noise()` is a np.ndarray, it has no attribute named "ratio_clip".
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。