Initial Error Snapshot
I had the above error initially and tried to correct it by adding toarray() to X_train (and as X_test as well):
enter image description