Created
June 11, 2021 05:51
-
-
Save tommydangerous/deb44004590cf0094cc54500f0c0a416 to your computer and use it in GitHub Desktop.
calculate_model_accuracy.py
This file contains hidden or 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
| from sklearn.metrics import accuracy_score | |
| accuracy = accuracy_score(y_test, y_pred) | |
| print(f'Accuracy score: {accuracy}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment