GraphSAGE
GraphSAGE copied to clipboard
Confused about features order
Hi, I am trying to apply Graphsage to my dataset for node classification. I tried to format my data to what Graphsage needs. However, I found two problems: 1. the identity of nodes must be integers otherwise there will be an error. This may be caused by the version of networkx. I don't know if I am doing it wrong. 2.In readme, the order of features is followed by the id_map.json, where there is a dict in the file, which is unordered. Looking forward to your reply!
Hi, I am trying to apply Graphsage to my dataset for node classification. I tried to format my data to what Graphsage needs. However, I found two problems:
- the identity of nodes must be integers otherwise there will be an error. This may be caused by the version of networkx. I don't know if I am doing it wrong. 2.In readme, the order of features is followed by the id_map.json, where there is a dict in the file, which is unordered. Looking forward to your reply!
@RexYing In problem 2, I am not sure in what order my features should be organized. Hopefully I express myself clearly. :)
Hi, i think for dict order doesn't matter. as long as you map the feature/index that corresponds to id. The updated networkx should be able to handle non-int keys.