Created
July 19, 2020 17:07
-
-
Save saimadhu-polamuri/8114a8e40c62331f40115e7457a59632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Train and test accuracy | |
train_predictions = get_predictions(nlp, x_train) | |
test_predictions = get_predictions(nlp, x_test) | |
train_accuracy = accuracy_score(y_train, train_predictions) | |
test_accuracy = accuracy_score(y_test, test_predictions) | |
print("Train accuracy: {}".format(train_accuracy)) | |
print("Test accuracy: {}".format(test_accuracy)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment