print("Training set score: %f" % classifier.score(X_train, y_train)) print("Test set score: %f" % classifier.score(X_test, y_test))