def estimate(X_train, y_train, X_test, y_test): clf = Perceptron(random_state=241) clf.fit(X_train, y_train) prediciton = clf.predict(X_test) return accuracy_score(y_test, prediciton)