text_plain_output_2.png application_vnd.jupyter.stderr_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.svm import LinearSVC

(X_train.shape, y_train.shape)

logRegModel = LogisticRegression()
logRegModel.fit(X_train, y_train)

svc = LinearSVC(random_state=43)

svc.fit(X_train, y_train)

print('Logistic regression accuracy:', logRegModel.score(X_test, y_test) * 100)
print('SVC accuracy:', svc.score(X_test, y_test) * 100)