lilygeorgescu/UBnormal

Question Regarding AUCROC computation

yashika-git opened this issue · 2 comments

Hello,

Thanks for the great work!
I had a question regarding the code in scripts/compute_auc_score.py.
I see 2 AUC values are being computed. Could you please tell if these correspond to the Micro-AUC and Macro-AUC mentioned in the paper? If yes, could you help clarify which one is Micro-AUC and which one is Macro-AUC?

Thank you!

Hi,

Yes, these correspond to micro and macro AUC, the first one from (

roc_auc = roc_auc_score(all_gt_frame_scores, all_frame_scores)
) is micro-AUC while this one (
print("Avg. (on video) frame-based AUC is %.3f on %s." % (np.array(roc_auc_videos).mean(), 'synthetic'))
) is macro-AUC.

Best,
Lili

Thanks!