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

the relevance probability seems to no effect on final result #5

Open
HuangLK opened this issue Nov 6, 2018 · 4 comments
Open

the relevance probability seems to no effect on final result #5

HuangLK opened this issue Nov 6, 2018 · 4 comments

Comments

@HuangLK
Copy link

HuangLK commented Nov 6, 2018

Hi, I have used RippleNet on my dataset but can't get the explainability by tracking the paths to the item with high relevance probability in the KG.
So I try to modify the source code:

o = tf.reduce_sum(self.t_emb_list[hop] * probs_expanded, axis=1)

After replacing the reduce_sum with reduce_mean, the line be:

    o = tf.reduce_mean(self.t_emb_list[hop], axis=1)

and I run these two version code on the movie dataset, and they both get the best result(AUC 0.92 ACC 0.84).
BEFORE(ORIGINAL):
image

AFTER:
image

Could these results tell the truth that the relevance probabilities of the heads have no effect on the final result?
If I misunderstand something, please let me know. Thx :)

@HuangLK
Copy link
Author

HuangLK commented Nov 20, 2018

@hwwang55

@hwwang55
Copy link
Owner

Relevance probabilities are more to provide explainability in MovieLens, since the performance on MovieLens is already high. Relevance probabilities are more effective in news dataset according to our results.

@liane886
Copy link

liane886 commented Jun 6, 2022

Hi, can you print the values of 'probs_expanded'? I have tired to do that, but met an issue ' You must feed a value for placeholder tensor 'memories_r_0' '. Can I get some help? thanks a lot

@liane886
Copy link

liane886 commented Jun 6, 2022

@HuangLK

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

3 participants