Not able to get past the error:
only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
My X, Y and a_prev print outputs right before calling the optimize function:
X = ['None', 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
y = [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19, 0]
(50, 1)
Really cant figure out what could be wronng here.