I’m reading the graph sage example code and I want to know how to generate embeddings for nodes without raw features.
I have a graph where the nodes doesn’t have any raw features, so I just randomly init embedding vectors for each node as their feature vector. Then the SAGE model is trained upon the graph with those random inited node vectors in the unsupervised way. Here are some points I want to confirm:
- Is this inductive unsupervised embedding training way correct?
- If this way is correct, since the node embeddings is not updated by the model, do we have to run the model to inference upon the training graph to get each node’s final embedding? I found this in the graph sage paper section 3.2 and I think we have to do this inference step.
the representations z_u that we feed into this loss function are generated from the features contained within a node’s local neighborhood, rather than training a unique embedding for each node (via an embedding look-up).
Thanks!