AI4Finance-Foundation / AI4Finance-Foundation/FinRL

Error When Training Agent

未关闭
#702 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Jupyter Notebook
星标
16.3k
派生
3.5k
PR 合并指标
30 天内没有已合并 PR

描述

When training the agent using the FinRL, I keep getting the same error that the tensor position must be a tuple not map, and not quite sure how to address the issue?

I am using a Google Collab on Mac.
ERROR:

TypeError Traceback (most recent call last)
[](https://localhost:8080/#) in
13 erl_params=ERL_PARAMS,
14 cwd='./papertrading_erl', #current_working_dir
---> 15 break_step=1e5)

4 frames
[/usr/local/lib/python3.7/dist-packages/elegantrl/agents/AgentBase.py](https://localhost:8080/#) in convert_trajectory(***failed resolving arguments***)
286
287 '''stack items'''
--> 288 traj_state = torch.stack(traj_list1[0])
289 traj_action = torch.stack(traj_list1[3])
290

TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not map

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。