CampanulaBells / PREM-GAD

Code for IEEE ICDM 23 PREM: A Simple Yet Effective Approach for Node-Level Graph Anomaly Detection
10 stars 1 forks source link

Discriminator 中的 forward()函数为什么返回的是余弦相似度的相反数? #3

Closed Ethan0828 closed 2 weeks ago

Ethan0828 commented 2 weeks ago

您好,请问在model.py 中,为什么 Discriminator 返回的事余弦相似度的相反数?

CampanulaBells commented 2 weeks ago

因为我们希望测量两个emb之间的不一致性作为anomaly score.

Ethan0828 commented 2 weeks ago

明白了~谢谢