IndexError: index 2 is out of bounds for axis 0 with size 2

image

IndexError: index 2 is out of bounds for axis 0 with size 2

Hi @RX1!

In order for us to help you better it’s easier if you copy and paste your full code.

From what I can see your params variable is probably of size 2, while it should have size 8.

Changing the size of params should fix your problem. If this doesn’t solve it then please paste your full code and full error traceback here!