Created
June 22, 2022 06:53
-
-
Save ShivnarenSrinivasan/5e664dda791d6bd255b4f3abb1eb14f2 to your computer and use it in GitHub Desktop.
ML Use Cases Exam
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
>>> y_true = [1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0] | |
>>> y_pred = [0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1] | |
>>> from sklearn import metrics | |
>>> metrics.precision_score(y_true, y_pred) | |
0.5714285714285714 | |
>>> metrics.recall_score(y_true, y_pred) | |
0.5714285714285714 | |
>>> metrics.f1_score(y_true, y_pred) | |
0.5714285714285714 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment