hq-deng / RD4AD

Anomaly Detection via Reverse Distillation from One-Class Embedding
MIT License
174 stars 31 forks source link

Can this model perform classification? #11

Closed AppleJoker94 closed 2 years ago

AppleJoker94 commented 2 years ago

Hi, first I was deeply impressed by your model, and I have a question

Is auroc_sp the number of classification?

Can this model perform classication?

Thank you for your wonderful work and I look forward to your reply.

hq-deng commented 2 years ago

Hello, I'm sorry for late reply. Auroc need a score in the range of [0,1] to reflect the classification performance, so it does not require a binary classification result such as accuracy. If you want to take a binary classification result, you should set a threshold for the anomaly score e.g. S>threshold is 1 and S<=threshold is 0.

AppleJoker94 commented 2 years ago

I found anomaly score in def evaluation! Thank you!