Skip to content

Data KeyError when run dqn_model.py #14

Description

@zhengwsh

I followed the tutorial and download the data into the correct folder, however when i run the model it occurs that data_dict has keyerror. I sincerely hope you teach me how to deal with this problem.

Traceback (most recent call last):
File "/home/vinson/Desktop/deep_trader-master/tensor-reinforcement/dqn_model.py", line 11, in
from train_stock import *
File "/home/vinson/Desktop/deep_trader-master/tensor-reinforcement/train_stock.py", line 23, in
supervised_y_data = episodic_data.make_supervised_data(data, data_dict)
File "/home/vinson/Desktop/deep_trader-master/tensor-reinforcement/episodic_data.py", line 99, in make_supervised_data
supervised_data.append(episode_supervised_data(episode, data_dict))
File "/home/vinson/Desktop/deep_trader-master/tensor-reinforcement/episodic_data.py", line 86, in episode_supervised_data
prices.append(data_average_price(data_dict, iteration))
File "/home/vinson/Desktop/deep_trader-master/tensor-reinforcement/episodic_data.py", line 91, in data_average_price
data = data_dict[list_md5_string_value(data)]
KeyError: '297956b2300474fda50a2a6b1d41a714'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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