Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running error in 03.Double_DQN.ipynb #9

Open
Cylkal opened this issue Apr 8, 2019 · 3 comments
Open

Running error in 03.Double_DQN.ipynb #9

Cylkal opened this issue Apr 8, 2019 · 3 comments

Comments

@Cylkal
Copy link

Cylkal commented Apr 8, 2019

IndexError                                Traceback (most recent call last)
 in 
     43         try:
     44             clear_output(True)
---> 45             plot_all_data(log_dir, env_id, 'DoubleDQN', config.MAX_FRAMES, bin_size=(10, 100, 100, 1), smooth=1, time=timedelta(seconds=int(timer()-start)), ipynb=True)
     46         except IOError:
     47             pass

c:\Users\Hene\Documents\GitHub\DeepRL-Tutorials\utils\plot.py in plot_all_data(folder, game, name, num_steps, bin_size, smooth, time, save_filename, ipynb)
    211     plt.rcParams.update(params)
    212 
--> 213     tx, ty = load_reward_data(folder, smooth, bin_size[0])
    214 
    215     if tx is None or ty is None:

c:\Users\Hene\Documents\GitHub\DeepRL-Tutorials\utils\plot.py in load_reward_data(indir, smooth, bin_size)
     54             for line in f:
     55                 tmp = line.split(',')
---> 56                 t_time = float(tmp[2])
     57                 tmp = [t_time, int(tmp[1]), float(tmp[0])]
     58                 datas.append(tmp)

IndexError: list index out of range
@M0liusX
Copy link

M0liusX commented Nov 20, 2019

Yeah I got this same issue, were you ever able to fix it @Cylkal?

@Cylkal
Copy link
Author

Cylkal commented Nov 29, 2019

I'm sorry, I can't fix it @M0liusX

@tlatjddnd101
Copy link

tlatjddnd101 commented Feb 24, 2021

@Cylkal @M0liusX,
I got this same issue too, and I bring solution.

We have to modify file 'plot.py' in folder 'utils'.
We can add if line == '\n': continue between line 54 and line 55 in 'plot.py'.

Save the changed plot.py, then run again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants