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

5.4 Label Correlation Analysis #6

Closed
BowenMu opened this issue Apr 16, 2022 · 0 comments
Closed

5.4 Label Correlation Analysis #6

BowenMu opened this issue Apr 16, 2022 · 0 comments

Comments

@BowenMu
Copy link

BowenMu commented Apr 16, 2022

您好,
我现在得到了AAPD测试集真实标签的条件概率和模型预测标签的条件概率,但是预测标签的条件概率存在为0的情况,无法直接计算KL散度。
对于此情况,我是直接if-else处理的,if p_prediction ==0 or p_ground ==0, KL_score = 0。但是这种方法计算出来的Klein散度为2.719,与论文的数值差距太大。
想知道您是如何处理此情况的。如果方便的话,能否公开一下KL散度的计算代码?
谢谢,祝您身体健康,工作顺利~

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