-
Notifications
You must be signed in to change notification settings - Fork 163
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
Question on weighted graph #33
Comments
Hi. Our model indeed supports encode edge information. In our case, we treat discrete timestamp as the edge feature and adopt a temporal encoding ( Line 283 in 16547c0
If your feature is continuous (like weight), you can simply adopt another encoding method to project them into a d-dimensional vector, and replace the sinusoid embedding table in the RTE, and then the weights (edge feature) could be encoded. |
Thank you for your quick reply. This helps a lot. |
You can try this paper: http://proceedings.mlr.press/v119/liu20n/liu20n.pdf |
Thank you for the reference. I am wondering if an alternative way to incorporate edge weight would be multiply edges weights to the heterogeneous mutual attention coefficients prior to apply softmax? |
Let's doable, but I guess that's not the optimal solution, as the model
should learn the attention by itself.
If you wants to do that, simply reply the temporal stamp as weght vector,
then product it before softmax
…On Thu, Feb 4, 2021, 23:06 xianshu1 ***@***.***> wrote:
Thank you for the reference.
I am wondering if an alternative way to incorporate edge weight would be
multiply edges weights to the heterogeneous mutual attention coefficients
prior to apply softmax?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHREXR45Q5RU5YCGNFI5XHLS5NVDNANCNFSM4XCEIFWA>
.
|
I have a weighted graph, where each edge has weight assign to it. Is it possible to incorporate edge weight into the learning as well?
If yes, could you advise how shall I do this? Thank you.
The text was updated successfully, but these errors were encountered: