I\'ve tried making both X and y as numpy array via
import numpy as np X = np.array(X) y = np.array(y)
but did not work, here\'s my full code for