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

Graph Spectral Coefficient Initialization #15

Closed
joneswong opened this issue Sep 3, 2022 · 2 comments
Closed

Graph Spectral Coefficient Initialization #15

joneswong opened this issue Sep 3, 2022 · 2 comments

Comments

@joneswong
Copy link

Hi, I noticed that the coefficient of the K-th order term is initialized in a way that is different from others. In one of my experiments, the learned coefficient of the K-th order term thus is much larger than others (alpha=0.1). Could you tell me why this is needed? Thanks!

TEMP[-1] = (1-alpha)**K

@elichienxD
Copy link
Collaborator

Hi @joneswong ,

This follows the original PPR formulation when truncated at step K. This makes the coefficient sum equal to 1. Note that in APPNA they also use this rule. More specifically:

$$ \sum_{k=0}^{K-1} \alpha (1-\alpha)^k + (1-\alpha)^K = \alpha\frac{1-(1-\alpha)^K}{1-(1-\alpha)} + (1-\alpha)^K = 1$$

Let me know if you have further questions.

Best,
Eli

@joneswong
Copy link
Author

Thanks for your explanation! I just found that this works better than that multiplies $\alpha$ to the last term as previous terms.

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