Skip to content

Instantly share code, notes, and snippets.

@naiborhujosua
Created August 5, 2022 00:24
Show Gist options
  • Save naiborhujosua/a71e48be3178754179993ade703d7d3e to your computer and use it in GitHub Desktop.
Save naiborhujosua/a71e48be3178754179993ade703d7d3e to your computer and use it in GitHub Desktop.
Accuracy score
# Get accuracy score by comparing predicted classes to ground truth labels
from sklearn.metrics import accuracy_score
sklearn_accuracy = accuracy_score(y_labels, pred_classes)
sklearn_accuracy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment