Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The overall accuracy is calculated as binary classification #6

Open
Wensi-Tang opened this issue Feb 26, 2020 · 0 comments
Open

The overall accuracy is calculated as binary classification #6

Wensi-Tang opened this issue Feb 26, 2020 · 0 comments

Comments

@Wensi-Tang
Copy link

the acc is calculated as:
ACC = (TP + TN) / (TP + FP + FN + TN)
ACC_macro = np.mean(ACC)

Which mean the if
y_true = [0, 1, 2]
y_predict = [0, 0, 0]

the accuracy for class 0 is 33.3%
the accuracy for class 1 is 66.6%
the accuracy for class 2 is 66.6%

Could you please give some reference for the correctness of this calculation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant