jayinai / teach-machine-to-trade

120 stars 58 forks source link

IndexError: tuple index out of range #4

Closed seeyuent closed 4 years ago

seeyuent commented 4 years ago

I have met an error as follows:

File "C:\Users\User\Desktop\research_project\run.py", line 63, in next_state, reward, done, info = env._step(action) File "C:\Users\User\Desktop\research_project\env.py", line 73, in _step self._trade(action) File "C:\Users\User\Desktop\research_project\env.py", line 97, in _trade action_vec = action_combo[action] IndexError: tuple index out of range

May I know how to fix it?