Skip to content

Error during executing run.py file #6

@asghar3166

Description

@asghar3166

I am getting the following exception:

None
Traceback (most recent call last):
File "run.py", line 56, in
next_state, reward, done, info = env.step(action)
File "C:\Users\asgha\Anaconda3\envs\tensorflow\lib\site-packages\gym\core.py", line 96, in step
return self._step(action)
File "C:\Users\asgha\OneDrive\Documents\AI\ML\Forex_trading\Q-Learning-for-Trading-master\envs.py", line 68, in _step
self._trade(action)
File "C:\Users\asgha\OneDrive\Documents\AI\ML\Forex_trading\Q-Learning-for-Trading-master\envs.py", line 91, in _trade
action_vec = action_combo[action]
TypeError: 'map' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions