FinRL icon indicating copy to clipboard operation
FinRL copied to clipboard

Error Training in Demo_MultiCrypto_trading.ipynb

Open BenpWil opened this issue 2 years ago • 1 comments

TypeError Traceback (most recent call last) in 11 erl_params=ERL_PARAMS, 12 break_step=5e4, ---> 13 if_vix=False 14 )

4 frames /usr/local/lib/python3.7/dist-packages/elegantrl/agents/AgentBase.py 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

No problems until I get to Training section. There is a similar issue in https://github.com/AI4Finance-Foundation/FinRL/issues/702 however, the suggested solution doesn't work.

Running in Collab.

Thanks!

BenpWil avatar Aug 29 '22 12:08 BenpWil

This error comes from ElegantRl Please solve it!🙏🥲

sboal94 avatar Sep 12 '22 12:09 sboal94