Skip to content

Running error in 03.Double_DQN.ipynb #9

Description

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

Activity

  1. M0liusX commented on Nov 20, 2019

    @M0liusX

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

  2. Cylkal commented on Nov 29, 2019

    @Cylkal
    Author

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

  3. tlatjddnd101 commented on Feb 24, 2021

    @tlatjddnd101

    @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

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