-
Notifications
You must be signed in to change notification settings - Fork 433
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
Can weighted graphs be used inGraphSAGE? #462
Comments
Hi Eric, Currently edge weights are not supported in GraphSAGE. We are looking into possible ways to take edge weights into account. We will update this issue when we do. Best regards, |
I am also interested in GraphSAGE on the weighted graph. In my opinion, it should consider both the |
Could you specify more about ideas that weighted edges might be useful with node classification? |
This expands GraphSAGE (undirected and directed) to support weighted sampling, where edges with higher weights are taken proportionally more often. For example, suppose there's there's 4 edges from node A: | source | target | weight | |--------|--------|--------| | A | B | 0 | | A | C | 1 | | A | D | 2 | | A | D | 3 | An unweighed walk starting at A will choose each of the edges with equal propability and so end up on B, C or D in proportion 1:1:2 (edge counts). A weighted walk will choose the edges proportional to the weights, so end up on the vertices in proportion 0:1:5 (sum of edge weight). (Worth specifically highlighting: a weighted walk will never chose the A-B edge because it has weight 0.) See: #462
We've now merged #1667, which adds support for edge weights in GraphSAGE sampling. Edge weights can be used for training a link prediction model too. |
How can i use the edge weights as one of the parameters for link prediction? |
Hi, I'm not clear as to what you are interested in doing with the edge weights. Could you tell us more about how you envisage the edge weight to be used as a parameter for link prediction? |
Hi @adocherty So link data is like: (node1_data)-----edge_data-----(node2_data) Thanks |
I have graphs that have weights that reflect the relative importance of some relationships compared to others. In other words, some links between nodes have lower weights (low importance) and others have higher weights (high importance).
This could be very useful for clustering and perhaps even node classification in situations where weights are available.
Is there a way to have GraphSAGE take this into account?
The text was updated successfully, but these errors were encountered: