Created
August 5, 2022 00:24
-
-
Save naiborhujosua/a71e48be3178754179993ade703d7d3e to your computer and use it in GitHub Desktop.
Accuracy score
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
# 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