Created
April 27, 2020 05:38
-
-
Save Alakhator/7c4100a7e06494dc8981385182032174 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
best_clf_grid.fit(X_train, Y_train) | |
# Make predictions using the new model. | |
best_train_predictions = best_clf_grid.predict(X_train) | |
best_test_predictions = best_clf_grid.predict(X_test) | |
# Calculate the f1_score of the new model. | |
print('The training F1 Score is', f1_score(best_train_predictions, Y_train)) | |
print('The testing F1 Score is', f1_score(best_test_predictions, Y_test)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment