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

PDN 中的 PATH 分数计算与论文中的公式不符 #509

Open
wangzhe258369 opened this issue Dec 25, 2024 · 1 comment
Open

PDN 中的 PATH 分数计算与论文中的公式不符 #509

wangzhe258369 opened this issue Dec 25, 2024 · 1 comment

Comments

@wangzhe258369
Copy link

trigger_out = self._build_trigger_net()
sim_out = self._build_similarity_net()
logits = tf.multiply(sim_out, trigger_out)

代码中实现的是:

trigger_out = tf.exp(<dnn output>)
sim_out = tf.exp(<dnn output>)
logits = tf.multiplay(sim_out, trigger_out)

相当于是:

$$ PATH_{uji} = e^{t_{uj}} e^{s_{ji}} $$

论文中的合并公式(公式(10))是:

$$ PATH_{uji} = MEG(t_{uj}, s_{ji}) = \ln(1 + e^{t_{uj}} e^{s_{ji}}) $$

@wangzhe258369
Copy link
Author

@wwxxzz

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

1 participant