Skip to content

TypeError : tuple indices must be integers or slices, not tuple #341

@hanggezhuai

Description

@hanggezhuai

when i run /Paper Trading/Automated_Paper_Trading.ipynb

train(start_date = '2022-08-30',
end_date = '2022-09-08',
ticker_list = ticker_list,
data_source = 'alpaca',
time_interval= '1Min',
technical_indicator_list= INDICATORS,
drl_lib='elegantrl',
env=env,
model_name='ppo',
API_KEY = API_KEY,
API_SECRET = API_SECRET,
API_BASE_URL = API_BASE_URL,
erl_params=ERL_PARAMS,
cwd='./papertrading_erl', #current_working_dir
break_step=2e5)

i got an error, TypeError: tuple indices must be integers or slices, not tuple, it seems happen in
agent.states = env.reset()[np.newaxis, :]
i want to know why

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions