Hi check the size of your list or array. I think you’re trying to access an element in an iterable like a list or array using an index that is larger than the size of the list or array.
It looks like best_fit_functions has a size of 4, but you’re trying to access the element at index 1008, which is causing the IndexError. Thats why its ‘out of bounds’.