What does ‘index 0 is out of bounds for axis 0 with size 0’ mean?

In numpy, index and dimension numbering starts with 0. So axis 0 means the 1st dimension. Also in numpy a dimension can have length (size) 0. The simplest case is: I also get it if x = np.zeros((0,5), int), a 2d array with 0 rows, and 5 columns. So someplace in your code you are creating an array with a size … Read more