application_vnd.jupyter.stderr_output_1.png
from sklearn.linear_model import Perceptron

(X_train.shape, y_train.shape, X_test.shape, y_test.shape)

(X_train.shape, y_train.shape, X_test.shape, y_test.shape)

from sklearn.linear_model import Perceptron
perceptron = Perceptron(tol=2e-05, random_state=0)
perceptron.fit(X_train, y_train)
print('Evaluate:')
print(f'train score: {perceptron.score(X_train, y_train)}')
print(f'test socre: {perceptron.score(X_test, y_test)}')