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

Accurate Rate or Error Rate? #1

Open
DemonsHunter opened this issue Mar 30, 2022 · 1 comment
Open

Accurate Rate or Error Rate? #1

DemonsHunter opened this issue Mar 30, 2022 · 1 comment

Comments

@DemonsHunter
Copy link

I download code in your repository and read it carefully and thoroughly.

I notice that the code keeps the manual random seed the same and sets cudnn.deterministic True. All of this makes sure the result is asthe same as you report in the paper. Specifically, when Imbalance Factor is 20, the result is 41.33.

However, according to the code, 41.33 is calculated as accuracy rate, while in your paper, 41.33 is reported as error rate. The 2 metrics are opposite aspect of an algo, which makes me puzzled.

Could you give an explanation?

@xiaohua-chen
Copy link
Owner

Well, the accuracy is calculated in the code. The error rate reported in the paper is calculated by manually subtracting the accuracy from 100.

For example, when Imbalance Factor is 20, according to the code, the result of code accuracy is 58.67, while the error rate reported in the paper is 100-58.67= 41.33.

For another example, when Imbalance Factor is 200, according to the code, the result of code accuracy is 44.76, while the error rate reported in the paper is 100-44.76= 55.24.

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

2 participants