in ()
1 # center the first N/2 points at (-2,-2)
----> 2 X[:N/2,:] = X[:N/2,:] - 2*np.ones((N/2,D))
3
4 # center the last N/2 points at (2, 2)
5 X[N/2:,:] = X[N/2:,:] + 2*np.ones((N/2,D))
TypeError: slice indices must be integers or None or have an __index__ method
Dear,
Do you know Why I got this error?
TypeError Traceback (most recent call last)