How to fix "Expected sequence or array-like"
# train
pred = model.fit(X_train, y_train)


Here you are juts fitting the model, not making any predictions.

accuracy_score(X_test,pred)


Here you are supposed to pass y_test, and y_predict, since its the output you are comparing not the input data.

Try this-

pred = model.predict(X_test)
accuracy_score(X_test,pred)