-
Notifications
You must be signed in to change notification settings - Fork 846
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
how sage train the node that only have 1 top neighbors? #178
Comments
I'm going to assume you mean one-hop neighbors (correct me if I'm wrong) but this may cause issues as the number of layers determines the aggregation. With graphsage one potential adaption you could make is to reduce the number of aggregation layers, in their tensorflow implementation this is defined as layers_info when the model is instantiated.
Something you will also want to take into account is the number of neighbors being sampled per layer. You won't want to sample more than neighbors available although I think they will do re-sampling if you do. In the tensorflow implementation, this is defined as 'degree_l1,_l2, ... on line 221. Out of curiosity, graphsage is good for inductive learning on large graphs. How dense is your graph? |
I misunderstood your question/problem setting. No, you don't need to remove nodes with only 1 neighbor. If the degree of a node is less than the max degree then graphsage will perform random sampling when building the adjacency matrix. |
I mean that if one node named A,the A node only have 1 degree of nodes, or the A node have no neighbor, but I set the degree to 2, how the graphsage train the A node? |
if a node only have 1 top neighbors,should i have to remove the node before i train the sage model? or the model just train the node only use the 1 top neighbors?
The text was updated successfully, but these errors were encountered: