Created
April 27, 2020 05:43
-
-
Save Alakhator/622877819c6d8ccb7f4378237326aee2 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_random.fit(X_train, Y_train) | |
# Make predictions using the new model. | |
best_train_predictions = best_clf_random.predict(X_train) | |
best_test_predictions = best_clf_random.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