ElegantRL
ElegantRL copied to clipboard
traj_list is wrong in demo_FinRL_ElegantRL_China_A_shares
traj_list = [map(list, zip(*traj_list))] should be changed into traj_list = list(zip(*traj_list))
and
cur_items = [map(list, zip(*traj_list))] should be changed into cur_items = list(zip(*traj_list))
We have fixed these bugs for the main algorithms (DQN, DoubleDQN, DualingDQN, D3QN, DDPG, TD3, SAC and PPO), the algorithm related to Hterm has not been updated (DDPG_H, PPO_H), thank you for the reminder, I will take the time to change these codes.
We had update these code for the main algorithms just like:
https://github.com/AI4Finance-Foundation/ElegantRL/blob/68bf0ea4ef3fb461026ece8897deabb92aeead32/elegantrl/agents/AgentBase.py#L84-L94
At the moment, I seem to have encountered the same problem with #288 niceban
