AI4Finance-Foundation / AI4Finance-Foundation/FinRL_Podracer

'numpy.ndarray' object has no attribute 'ratio_clip'

オープン
#4 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。