Skip to content

Instantly share code, notes, and snippets.

@tommydangerous
Created June 11, 2021 05:51
Show Gist options
  • Select an option

  • Save tommydangerous/deb44004590cf0094cc54500f0c0a416 to your computer and use it in GitHub Desktop.

Select an option

Save tommydangerous/deb44004590cf0094cc54500f0c0a416 to your computer and use it in GitHub Desktop.
calculate_model_accuracy.py
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