Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created April 27, 2020 05:43
Show Gist options
  • Save Alakhator/622877819c6d8ccb7f4378237326aee2 to your computer and use it in GitHub Desktop.
Save Alakhator/622877819c6d8ccb7f4378237326aee2 to your computer and use it in GitHub Desktop.
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