qfettes/DeepRL-Tutorials

Running error in 03.Double_DQN.ipynb

Cylkal opened this issue · 3 comments

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

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

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

@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!